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 feature IKFilterUI 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.

§Safety
  • in_ui_configuration generic should be of the correct type.
  • in_ui_configuration might not allow None.
  • in_keys generic should be of the correct type.
  • in_keys might not allow None.

Trait Implementations§

Source§

impl ProtocolType for dyn IKFilterCustomUIProvider

Available on crate feature ImageKit only.
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

Available on crate feature ImageKit only.

Implementations on Foreign Types§

Source§

impl<T> IKFilterCustomUIProvider for ProtocolObject<T>

Available on crate feature ImageKit only.

Implementors§