ICCameraDeviceDownloadDelegate

Trait ICCameraDeviceDownloadDelegate 

Source
pub unsafe trait ICCameraDeviceDownloadDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn didDownloadFile_error_options_contextInfo(
        &self,
        file: &ICCameraFile,
        error: Option<&NSError>,
        options: &NSDictionary<NSString, AnyObject>,
        context_info: *mut c_void,
    )
       where Self: Sized + Message { ... }
    unsafe fn didReceiveDownloadProgressForFile_downloadedBytes_maxBytes(
        &self,
        file: &ICCameraFile,
        downloaded_bytes: off_t,
        max_bytes: off_t,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature ICCameraDevice only.
Expand description

The object passed in as ‘downloadDelegate’ in the ‘requestDownloadFile:options:downloadDelegate:didDownloadSelector:contextInfo:’ message must conform to ICCameraDeviceDownloadDelegate protocol.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn didDownloadFile_error_options_contextInfo( &self, file: &ICCameraFile, error: Option<&NSError>, options: &NSDictionary<NSString, AnyObject>, context_info: *mut c_void, )
where Self: Sized + Message,

Available on crate features ICCameraFile and ICCameraItem only.

This message is sent to the delegate when the requested download operation is complete.

§Safety
  • options generic should be of the correct type.
  • context_info must be a valid pointer or null.
Source

unsafe fn didReceiveDownloadProgressForFile_downloadedBytes_maxBytes( &self, file: &ICCameraFile, downloaded_bytes: off_t, max_bytes: off_t, )
where Self: Sized + Message,

Available on crate features ICCameraFile and ICCameraItem and libc only.

This message is sent to the delegate to provide status of the download operation.

Trait Implementations§

Source§

impl ProtocolType for dyn ICCameraDeviceDownloadDelegate

Source§

const NAME: &'static str = "ICCameraDeviceDownloadDelegate"

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 ICCameraDeviceDownloadDelegate

Implementations on Foreign Types§

Source§

impl<T> ICCameraDeviceDownloadDelegate for ProtocolObject<T>

Implementors§