Skip to main content

UIFocusAnimationContext

Trait UIFocusAnimationContext 

Source
pub unsafe trait UIFocusAnimationContext: NSObjectProtocol + MainThreadOnly {
    // Provided method
    fn duration(&self) -> NSTimeInterval
       where Self: Sized + Message { ... }
}
Available on crate feature UIFocusAnimationCoordinator only.
Expand description

UIFocusAnimationContext is used to provide UIKit-determined context about animations that are related to a focus update.

See also Apple’s documentation

Provided Methods§

Source

fn duration(&self) -> NSTimeInterval
where Self: Sized + Message,

The duration of the main animations in seconds.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UIFocusAnimationContext

Source§

impl ProtocolType for dyn UIFocusAnimationContext

Source§

const NAME: &'static str = "UIFocusAnimationContext"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> UIFocusAnimationContext for ProtocolObject<T>

Implementors§