IKCameraDeviceViewDelegate

Trait IKCameraDeviceViewDelegate 

Source
pub unsafe trait IKCameraDeviceViewDelegate {
    // Provided methods
    unsafe fn cameraDeviceViewSelectionDidChange(
        &self,
        camera_device_view: Option<&IKCameraDeviceView>,
    )
       where Self: Sized + Message { ... }
    unsafe fn cameraDeviceView_didDownloadFile_location_fileData_error(
        &self,
        camera_device_view: Option<&IKCameraDeviceView>,
        file: Option<&ICCameraFile>,
        url: Option<&NSURL>,
        data: Option<&NSData>,
        error: Option<&NSError>,
    )
       where Self: Sized + Message { ... }
    unsafe fn cameraDeviceView_didEncounterError(
        &self,
        camera_device_view: Option<&IKCameraDeviceView>,
        error: Option<&NSError>,
    )
       where Self: Sized + Message { ... }
}
Available on crate features IKCameraDeviceView and ImageKit only.
Expand description

A delegate of IKCameraDeviceView must conform to IKCameraDeviceViewDelegate protocol.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn cameraDeviceViewSelectionDidChange( &self, camera_device_view: Option<&IKCameraDeviceView>, )
where Self: Sized + Message,

This message is sent when the user selection did change.

Source

unsafe fn cameraDeviceView_didDownloadFile_location_fileData_error( &self, camera_device_view: Option<&IKCameraDeviceView>, file: Option<&ICCameraFile>, url: Option<&NSURL>, data: Option<&NSData>, error: Option<&NSError>, )
where Self: Sized + Message,

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

This message is sent for each file that gets downloaded.

Based on the IKCameraDeviceViewDisplayMode the downloaded file will be saved on disk using the ‘url’, or returned in memory as NSData

Source

unsafe fn cameraDeviceView_didEncounterError( &self, camera_device_view: Option<&IKCameraDeviceView>, error: Option<&NSError>, )
where Self: Sized + Message,

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

Trait Implementations§

Source§

impl ProtocolType for dyn IKCameraDeviceViewDelegate

Source§

const NAME: &'static str = "IKCameraDeviceViewDelegate"

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 IKCameraDeviceViewDelegate

Implementations on Foreign Types§

Source§

impl<T> IKCameraDeviceViewDelegate for ProtocolObject<T>

Implementors§