IKFilterCustomUIProvider

Trait IKFilterCustomUIProvider 

Source
pub unsafe trait IKFilterCustomUIProvider {
    // Provided method
    unsafe fn provideViewForUIConfiguration_excludedKeys(
        &self,
        in_ui_configuration: Option<&NSDictionary>,
        in_keys: Option<&NSArray>,
        mtm: MainThreadMarker,
    ) -> Option<Retained<IKFilterUIView>>
       where Self: Sized + Message { ... }
}
Available on crate features IKFilterUI and ImageKit only.
Expand description

The IKFilterCustomUIProvider needs to be implemented by a filter to implement its own UI.

When a filter wants to provide its own UI for all or only some configurations, it has to implement the provideViewForUIConfiguration method.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn provideViewForUIConfiguration_excludedKeys( &self, in_ui_configuration: Option<&NSDictionary>, in_keys: Option<&NSArray>, mtm: MainThreadMarker, ) -> Option<Retained<IKFilterUIView>>
where Self: Sized + Message,

Available on crate feature IKFilterUIView only.

The provideViewForUIConfiguration gets called, when a client requests a filter UI by calling viewForUIConfiguration:excludedKeys.

See description in viewForUIConfiguration:excludedKeys for details on the parameters. If a filter cannot provide a IKFilterUIView for a given UIConfiguration, it can return nil and the CoreImageKit framework will try to provide a UI for it instead.

Trait Implementations§

Source§

impl ProtocolType for dyn IKFilterCustomUIProvider

Source§

const NAME: &'static str = "IKFilterCustomUIProvider"

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 IKFilterCustomUIProvider

Implementations on Foreign Types§

Source§

impl<T> IKFilterCustomUIProvider for ProtocolObject<T>

Implementors§