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§
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.
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
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.