Trait UIFocusAnimationContext

Source
pub unsafe trait UIFocusAnimationContext: NSObjectProtocol + MainThreadOnly {
    // Provided method
    unsafe 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

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

The duration of the main animations in seconds.

Trait Implementations§

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
Source§

impl<T> ImplementedBy<T> for dyn UIFocusAnimationContext

Implementations on Foreign Types§

Source§

impl<T> UIFocusAnimationContext for ProtocolObject<T>

Implementors§