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§
Sourceunsafe fn didDownloadFile_error_options_contextInfo(
&self,
file: &ICCameraFile,
error: Option<&NSError>,
options: &NSDictionary<NSString, AnyObject>,
context_info: *mut c_void,
)
Available on crate features ICCameraFile and ICCameraItem only.
unsafe fn didDownloadFile_error_options_contextInfo( &self, file: &ICCameraFile, error: Option<&NSError>, options: &NSDictionary<NSString, AnyObject>, context_info: *mut c_void, )
ICCameraFile and ICCameraItem only.This message is sent to the delegate when the requested download operation is complete.
§Safety
optionsgeneric should be of the correct type.context_infomust be a valid pointer or null.
Sourceunsafe fn didReceiveDownloadProgressForFile_downloadedBytes_maxBytes(
&self,
file: &ICCameraFile,
downloaded_bytes: off_t,
max_bytes: off_t,
)
Available on crate features ICCameraFile and ICCameraItem and libc only.
unsafe fn didReceiveDownloadProgressForFile_downloadedBytes_maxBytes( &self, file: &ICCameraFile, downloaded_bytes: off_t, max_bytes: off_t, )
ICCameraFile and ICCameraItem and libc only.This message is sent to the delegate to provide status of the download operation.