pub unsafe trait ICCameraDeviceDelegate: ICDeviceDelegate {
Show 17 methods
// Provided methods
unsafe fn cameraDevice_didAddItems(
&self,
camera: &ICCameraDevice,
items: &NSArray<ICCameraItem>,
)
where Self: Sized + Message { ... }
unsafe fn cameraDevice_didRemoveItems(
&self,
camera: &ICCameraDevice,
items: &NSArray<ICCameraItem>,
)
where Self: Sized + Message { ... }
unsafe fn cameraDevice_didReceiveThumbnail_forItem_error(
&self,
camera: &ICCameraDevice,
thumbnail: Option<&CGImage>,
item: &ICCameraItem,
error: Option<&NSError>,
)
where Self: Sized + Message { ... }
unsafe fn cameraDevice_didReceiveMetadata_forItem_error(
&self,
camera: &ICCameraDevice,
metadata: Option<&NSDictionary>,
item: &ICCameraItem,
error: Option<&NSError>,
)
where Self: Sized + Message { ... }
unsafe fn cameraDevice_didRenameItems(
&self,
camera: &ICCameraDevice,
items: &NSArray<ICCameraItem>,
)
where Self: Sized + Message { ... }
unsafe fn cameraDeviceDidChangeCapability(&self, camera: &ICCameraDevice)
where Self: Sized + Message { ... }
unsafe fn cameraDevice_didReceivePTPEvent(
&self,
camera: &ICCameraDevice,
event_data: &NSData,
)
where Self: Sized + Message { ... }
unsafe fn deviceDidBecomeReadyWithCompleteContentCatalog(
&self,
device: &ICCameraDevice,
)
where Self: Sized + Message { ... }
unsafe fn cameraDeviceDidRemoveAccessRestriction(&self, device: &ICDevice)
where Self: Sized + Message { ... }
unsafe fn cameraDeviceDidEnableAccessRestriction(&self, device: &ICDevice)
where Self: Sized + Message { ... }
unsafe fn cameraDevice_shouldGetThumbnailOfItem(
&self,
camera_device: &ICCameraDevice,
item: &ICCameraItem,
) -> bool
where Self: Sized + Message { ... }
unsafe fn cameraDevice_shouldGetMetadataOfItem(
&self,
camera_device: &ICCameraDevice,
item: &ICCameraItem,
) -> bool
where Self: Sized + Message { ... }
unsafe fn cameraDevice_didCompleteDeleteFilesWithError(
&self,
camera: &ICCameraDevice,
error: Option<&NSError>,
)
where Self: Sized + Message { ... }
unsafe fn cameraDevice_didAddItem(
&self,
camera: &ICCameraDevice,
item: &ICCameraItem,
)
where Self: Sized + Message { ... }
unsafe fn cameraDevice_didRemoveItem(
&self,
camera: &ICCameraDevice,
item: &ICCameraItem,
)
where Self: Sized + Message { ... }
unsafe fn cameraDevice_didReceiveThumbnailForItem(
&self,
camera: &ICCameraDevice,
item: &ICCameraItem,
)
where Self: Sized + Message { ... }
unsafe fn cameraDevice_didReceiveMetadataForItem(
&self,
camera: &ICCameraDevice,
item: &ICCameraItem,
)
where Self: Sized + Message { ... }
}ICCameraDevice and ICDevice only.Expand description
A delegate of ICCameraDevice must conform to ICCameraDeviceDelegate protocol.
The ICCameraDeviceDelegate protocol inherits from the ICDeviceDelegate protocol.
See also Apple’s documentation
Provided Methods§
Sourceunsafe fn cameraDevice_didAddItems(
&self,
camera: &ICCameraDevice,
items: &NSArray<ICCameraItem>,
)
Available on crate feature ICCameraItem only.
unsafe fn cameraDevice_didAddItems( &self, camera: &ICCameraDevice, items: &NSArray<ICCameraItem>, )
ICCameraItem only.This message is sent when objects are added to the device.
The objects in items are instances ICCameraFile class.
Sourceunsafe fn cameraDevice_didRemoveItems(
&self,
camera: &ICCameraDevice,
items: &NSArray<ICCameraItem>,
)
Available on crate feature ICCameraItem only.
unsafe fn cameraDevice_didRemoveItems( &self, camera: &ICCameraDevice, items: &NSArray<ICCameraItem>, )
ICCameraItem only.This message is sent when objects are removed from the device.
The objects in items are instances ICCameraFile class.
Sourceunsafe fn cameraDevice_didReceiveThumbnail_forItem_error(
&self,
camera: &ICCameraDevice,
thumbnail: Option<&CGImage>,
item: &ICCameraItem,
error: Option<&NSError>,
)
Available on crate features ICCameraItem and objc2-core-graphics only.
unsafe fn cameraDevice_didReceiveThumbnail_forItem_error( &self, camera: &ICCameraDevice, thumbnail: Option<&CGImage>, item: &ICCameraItem, error: Option<&NSError>, )
ICCameraItem and objc2-core-graphics only.This message is sent when the thumbnail requested for an item on a device is available.
Sourceunsafe fn cameraDevice_didReceiveMetadata_forItem_error(
&self,
camera: &ICCameraDevice,
metadata: Option<&NSDictionary>,
item: &ICCameraItem,
error: Option<&NSError>,
)
Available on crate feature ICCameraItem only.
unsafe fn cameraDevice_didReceiveMetadata_forItem_error( &self, camera: &ICCameraDevice, metadata: Option<&NSDictionary>, item: &ICCameraItem, error: Option<&NSError>, )
ICCameraItem only.This message is sent when the metadata requested for an item on a device is available.
§Safety
metadata generic should be of the correct type.
Sourceunsafe fn cameraDevice_didRenameItems(
&self,
camera: &ICCameraDevice,
items: &NSArray<ICCameraItem>,
)
Available on crate feature ICCameraItem only.
unsafe fn cameraDevice_didRenameItems( &self, camera: &ICCameraDevice, items: &NSArray<ICCameraItem>, )
ICCameraItem only.This message is sent when an object or objects are renamed on the device.
The objects may be instances of ICCameraFolder or ICCameraFile class.
Sourceunsafe fn cameraDeviceDidChangeCapability(&self, camera: &ICCameraDevice)
unsafe fn cameraDeviceDidChangeCapability(&self, camera: &ICCameraDevice)
This message is sent when a capability of a device changes.
Detailed capabilitiy descriptions are provided at the top of this header file.
Sourceunsafe fn cameraDevice_didReceivePTPEvent(
&self,
camera: &ICCameraDevice,
event_data: &NSData,
)
unsafe fn cameraDevice_didReceivePTPEvent( &self, camera: &ICCameraDevice, event_data: &NSData, )
This message is sent to the delegate to convey a PTP event.
Sourceunsafe fn deviceDidBecomeReadyWithCompleteContentCatalog(
&self,
device: &ICCameraDevice,
)
unsafe fn deviceDidBecomeReadyWithCompleteContentCatalog( &self, device: &ICCameraDevice, )
This message is sent when the camera device is done enumerating its content and is ready to receive requests.
A session must be opened on the device in order to enumerate its content and make it ready to receive requests.
Sourceunsafe fn cameraDeviceDidRemoveAccessRestriction(&self, device: &ICDevice)
unsafe fn cameraDeviceDidRemoveAccessRestriction(&self, device: &ICDevice)
This message is sent when an Apple device has been unlocked, paired to the host, and media is available.
Sourceunsafe fn cameraDeviceDidEnableAccessRestriction(&self, device: &ICDevice)
unsafe fn cameraDeviceDidEnableAccessRestriction(&self, device: &ICDevice)
This message is sent when an Apple device has been locked, and media is unavailable until the restriction has been removed.
Sourceunsafe fn cameraDevice_shouldGetThumbnailOfItem(
&self,
camera_device: &ICCameraDevice,
item: &ICCameraItem,
) -> bool
Available on crate feature ICCameraItem only.
unsafe fn cameraDevice_shouldGetThumbnailOfItem( &self, camera_device: &ICCameraDevice, item: &ICCameraItem, ) -> bool
ICCameraItem only.This message is sent when the camera device is about to execute queued requests for the thumbnail of a specific item. If the request is no longer wanted, eg: the item is no longer displayed on the screen, the client can return NO and abort sending a request down to the camera device, speeding up the exection queue.
Sourceunsafe fn cameraDevice_shouldGetMetadataOfItem(
&self,
camera_device: &ICCameraDevice,
item: &ICCameraItem,
) -> bool
Available on crate feature ICCameraItem only.
unsafe fn cameraDevice_shouldGetMetadataOfItem( &self, camera_device: &ICCameraDevice, item: &ICCameraItem, ) -> bool
ICCameraItem only.This message is sent when the camera device is about to execute queued requests for the metadata of a specific item. If the request is no longer wanted, eg: the item is no longer displayed on the screen, the client can return NO and abort sending a request down to the camera device, speeding up the execution queue.
Sourceunsafe fn cameraDevice_didCompleteDeleteFilesWithError(
&self,
camera: &ICCameraDevice,
error: Option<&NSError>,
)
unsafe fn cameraDevice_didCompleteDeleteFilesWithError( &self, camera: &ICCameraDevice, error: Option<&NSError>, )
This message is sent after the camera device completes a delete operation initiated by sending a ‘requestDeleteFiles:’ message to that device.
This message is sent after the camera device completes a delete operation initiated by sending a ‘requestDeleteFiles:’ message to that device.
unsafe fn cameraDevice_didAddItem( &self, camera: &ICCameraDevice, item: &ICCameraItem, )
ICCameraItem only.unsafe fn cameraDevice_didRemoveItem( &self, camera: &ICCameraDevice, item: &ICCameraItem, )
ICCameraItem only.unsafe fn cameraDevice_didReceiveThumbnailForItem( &self, camera: &ICCameraDevice, item: &ICCameraItem, )
ICCameraItem only.unsafe fn cameraDevice_didReceiveMetadataForItem( &self, camera: &ICCameraDevice, item: &ICCameraItem, )
ICCameraItem only.