Skip to main content

IKDeviceBrowserViewDelegate

Trait IKDeviceBrowserViewDelegate 

Source
pub unsafe trait IKDeviceBrowserViewDelegate {
    // Provided methods
    unsafe fn deviceBrowserView_selectionDidChange(
        &self,
        device_browser_view: Option<&IKDeviceBrowserView>,
        device: Option<&ICDevice>,
    )
       where Self: Sized + Message { ... }
    unsafe fn deviceBrowserView_didEncounterError(
        &self,
        device_browser_view: Option<&IKDeviceBrowserView>,
        error: Option<&NSError>,
    )
       where Self: Sized + Message { ... }
}
Available on crate features IKDeviceBrowserView and ImageKit only.
Expand description

A delegate of IKDeviceBrowserView must conform to IKDeviceBrowserViewDelegate protocol.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn deviceBrowserView_selectionDidChange( &self, device_browser_view: Option<&IKDeviceBrowserView>, device: Option<&ICDevice>, )
where Self: Sized + Message,

Available on crate feature objc2-image-capture-core only.

This message is sent when the user selection did change.

The device may be a ICCameraDevice or a ICScannerDevice.

§Safety
  • device_browser_view might not allow None.
  • device might not allow None.
Source

unsafe fn deviceBrowserView_didEncounterError( &self, device_browser_view: Option<&IKDeviceBrowserView>, error: Option<&NSError>, )
where Self: Sized + Message,

This message is sent every time the device browser reports an error.

§Safety
  • device_browser_view might not allow None.
  • error might not allow None.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn IKDeviceBrowserViewDelegate

Source§

impl ProtocolType for dyn IKDeviceBrowserViewDelegate

Source§

const NAME: &'static str = "IKDeviceBrowserViewDelegate"

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> IKDeviceBrowserViewDelegate for ProtocolObject<T>

Implementors§