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§
Sourceunsafe fn cameraDeviceViewSelectionDidChange(
&self,
camera_device_view: Option<&IKCameraDeviceView>,
)
unsafe fn cameraDeviceViewSelectionDidChange( &self, camera_device_view: Option<&IKCameraDeviceView>, )
This message is sent when the user selection did change.
§Safety
camera_device_view might not allow None.
Sourceunsafe fn cameraDeviceView_didDownloadFile_location_fileData_error(
&self,
camera_device_view: Option<&IKCameraDeviceView>,
file: Option<&ICCameraFile>,
url: Option<&NSURL>,
data: Option<&NSData>,
error: Option<&NSError>,
)
Available on crate feature objc2-image-capture-core only.
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>, )
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_viewmight not allowNone.filemight not allowNone.urlmight not allowNone.datamight not allowNone.errormight not allowNone.
Sourceunsafe fn cameraDeviceView_didEncounterError(
&self,
camera_device_view: Option<&IKCameraDeviceView>,
error: Option<&NSError>,
)
unsafe fn cameraDeviceView_didEncounterError( &self, camera_device_view: Option<&IKCameraDeviceView>, error: Option<&NSError>, )
This message is sent every time the camera device reports an error.
§Safety
camera_device_viewmight not allowNone.errormight not allowNone.
Trait Implementations§
Source§impl ProtocolType for dyn IKCameraDeviceViewDelegate
Available on crate feature ImageKit only.
impl ProtocolType for dyn IKCameraDeviceViewDelegate
Available on crate feature
ImageKit only.impl<T> ImplementedBy<T> for dyn IKCameraDeviceViewDelegate
Available on crate feature
ImageKit only.Implementations on Foreign Types§
impl<T> IKCameraDeviceViewDelegate for ProtocolObject<T>where
T: ?Sized + IKCameraDeviceViewDelegate,
Available on crate feature
ImageKit only.