ICCameraDeviceDelegate

Trait ICCameraDeviceDelegate 

Source
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 { ... }
}
Available on crate features 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§

Source

unsafe fn cameraDevice_didAddItems( &self, camera: &ICCameraDevice, items: &NSArray<ICCameraItem>, )
where Self: Sized + Message,

Available on crate feature ICCameraItem only.

This message is sent when objects are added to the device.

The objects in items are instances ICCameraFile class.

Source

unsafe fn cameraDevice_didRemoveItems( &self, camera: &ICCameraDevice, items: &NSArray<ICCameraItem>, )
where Self: Sized + Message,

Available on crate feature ICCameraItem only.

This message is sent when objects are removed from the device.

The objects in items are instances ICCameraFile class.

Source

unsafe fn cameraDevice_didReceiveThumbnail_forItem_error( &self, camera: &ICCameraDevice, thumbnail: Option<&CGImage>, item: &ICCameraItem, error: Option<&NSError>, )
where Self: Sized + Message,

Available on crate features ICCameraItem and objc2-core-graphics only.

This message is sent when the thumbnail requested for an item on a device is available.

Source

unsafe fn cameraDevice_didReceiveMetadata_forItem_error( &self, camera: &ICCameraDevice, metadata: Option<&NSDictionary>, item: &ICCameraItem, error: Option<&NSError>, )
where Self: Sized + Message,

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

Source

unsafe fn cameraDevice_didRenameItems( &self, camera: &ICCameraDevice, items: &NSArray<ICCameraItem>, )
where Self: Sized + Message,

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

Source

unsafe fn cameraDeviceDidChangeCapability(&self, camera: &ICCameraDevice)
where Self: Sized + Message,

This message is sent when a capability of a device changes.

Detailed capabilitiy descriptions are provided at the top of this header file.

Source

unsafe fn cameraDevice_didReceivePTPEvent( &self, camera: &ICCameraDevice, event_data: &NSData, )
where Self: Sized + Message,

This message is sent to the delegate to convey a PTP event.

Source

unsafe fn deviceDidBecomeReadyWithCompleteContentCatalog( &self, device: &ICCameraDevice, )
where Self: Sized + Message,

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.

Source

unsafe fn cameraDeviceDidRemoveAccessRestriction(&self, device: &ICDevice)
where Self: Sized + Message,

This message is sent when an Apple device has been unlocked, paired to the host, and media is available.

Source

unsafe fn cameraDeviceDidEnableAccessRestriction(&self, device: &ICDevice)
where Self: Sized + Message,

This message is sent when an Apple device has been locked, and media is unavailable until the restriction has been removed.

Source

unsafe fn cameraDevice_shouldGetThumbnailOfItem( &self, camera_device: &ICCameraDevice, item: &ICCameraItem, ) -> bool
where Self: Sized + Message,

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

Source

unsafe fn cameraDevice_shouldGetMetadataOfItem( &self, camera_device: &ICCameraDevice, item: &ICCameraItem, ) -> bool
where Self: Sized + Message,

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

Source

unsafe fn cameraDevice_didCompleteDeleteFilesWithError( &self, camera: &ICCameraDevice, error: Option<&NSError>, )
where Self: Sized + Message,

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.

Source

unsafe fn cameraDevice_didAddItem( &self, camera: &ICCameraDevice, item: &ICCameraItem, )
where Self: Sized + Message,

👎Deprecated
Available on crate feature ICCameraItem only.
Source

unsafe fn cameraDevice_didRemoveItem( &self, camera: &ICCameraDevice, item: &ICCameraItem, )
where Self: Sized + Message,

👎Deprecated
Available on crate feature ICCameraItem only.
Source

unsafe fn cameraDevice_didReceiveThumbnailForItem( &self, camera: &ICCameraDevice, item: &ICCameraItem, )
where Self: Sized + Message,

👎Deprecated
Available on crate feature ICCameraItem only.
Source

unsafe fn cameraDevice_didReceiveMetadataForItem( &self, camera: &ICCameraDevice, item: &ICCameraItem, )
where Self: Sized + Message,

👎Deprecated
Available on crate feature ICCameraItem only.

Trait Implementations§

Source§

impl ProtocolType for dyn ICCameraDeviceDelegate

Source§

const NAME: &'static str = "ICCameraDeviceDelegate"

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 ICCameraDeviceDelegate

Implementations on Foreign Types§

Source§

impl<T> ICCameraDeviceDelegate for ProtocolObject<T>

Implementors§