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

§Safety

camera_device_view might not allow None.

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

§Safety
  • camera_device_view might not allow None.
  • file might not allow None.
  • url might not allow None.
  • data might not allow None.
  • error might not allow None.
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.

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

Trait Implementations§

Source§

impl ProtocolType for dyn IKCameraDeviceViewDelegate

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

Available on crate feature ImageKit only.

Implementations on Foreign Types§

Source§

impl<T> IKCameraDeviceViewDelegate for ProtocolObject<T>

Available on crate feature ImageKit only.

Implementors§