Trait UISpringLoadedInteractionEffect

Source
pub unsafe trait UISpringLoadedInteractionEffect: NSObjectProtocol + MainThreadOnly {
    // Provided method
    unsafe fn interaction_didChangeWithContext(
        &self,
        interaction: &UISpringLoadedInteraction,
        context: &ProtocolObject<dyn UISpringLoadedInteractionContext>,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature UISpringLoadedInteraction only.
Expand description

The interaction effect of a UISpringLoadedInteraction object must adopt the UISpringLoadedInteractionEffect protocol. It is responsible for styling the interaction view according to the current springloading state.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn interaction_didChangeWithContext( &self, interaction: &UISpringLoadedInteraction, context: &ProtocolObject<dyn UISpringLoadedInteractionContext>, )
where Self: Sized + Message,

Informs the effect that the springloading state changed.

Parameter interaction: The springloaded interaction providing this information.

Parameter context: An object that provides information about the current springloading state.

Trait Implementations§

Source§

impl ProtocolType for dyn UISpringLoadedInteractionEffect

Source§

const NAME: &'static str = "UISpringLoadedInteractionEffect"

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 UISpringLoadedInteractionEffect

Implementations on Foreign Types§

Source§

impl<T> UISpringLoadedInteractionEffect for ProtocolObject<T>

Implementors§