CPInterfaceControllerDelegate

Trait CPInterfaceControllerDelegate 

Source
pub unsafe trait CPInterfaceControllerDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    unsafe fn templateWillAppear_animated(
        &self,
        a_template: &CPTemplate,
        animated: bool,
    )
       where Self: Sized + Message { ... }
    unsafe fn templateDidAppear_animated(
        &self,
        a_template: &CPTemplate,
        animated: bool,
    )
       where Self: Sized + Message { ... }
    unsafe fn templateWillDisappear_animated(
        &self,
        a_template: &CPTemplate,
        animated: bool,
    )
       where Self: Sized + Message { ... }
    unsafe fn templateDidDisappear_animated(
        &self,
        a_template: &CPTemplate,
        animated: bool,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature CPInterfaceController only.
Expand description

CPInterfaceControllerDelegate allows your app to observe template visibility lifecycles for the templates presented by your app.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn templateWillAppear_animated( &self, a_template: &CPTemplate, animated: bool, )
where Self: Sized + Message,

Available on crate feature CPTemplate only.
Source

unsafe fn templateDidAppear_animated( &self, a_template: &CPTemplate, animated: bool, )
where Self: Sized + Message,

Available on crate feature CPTemplate only.
Source

unsafe fn templateWillDisappear_animated( &self, a_template: &CPTemplate, animated: bool, )
where Self: Sized + Message,

Available on crate feature CPTemplate only.
Source

unsafe fn templateDidDisappear_animated( &self, a_template: &CPTemplate, animated: bool, )
where Self: Sized + Message,

Available on crate feature CPTemplate only.

Trait Implementations§

Source§

impl ProtocolType for dyn CPInterfaceControllerDelegate

Source§

const NAME: &'static str = "CPInterfaceControllerDelegate"

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 CPInterfaceControllerDelegate

Implementations on Foreign Types§

Source§

impl<T> CPInterfaceControllerDelegate for ProtocolObject<T>

Implementors§