NSURLSessionDownloadDelegate

Trait NSURLSessionDownloadDelegate 

Source
pub unsafe trait NSURLSessionDownloadDelegate: NSURLSessionTaskDelegate {
    // Provided methods
    fn URLSession_downloadTask_didFinishDownloadingToURL(
        &self,
        session: &NSURLSession,
        download_task: &NSURLSessionDownloadTask,
        location: &NSURL,
    )
       where Self: Sized + Message { ... }
    fn URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite(
        &self,
        session: &NSURLSession,
        download_task: &NSURLSessionDownloadTask,
        bytes_written: i64,
        total_bytes_written: i64,
        total_bytes_expected_to_write: i64,
    )
       where Self: Sized + Message { ... }
    fn URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes(
        &self,
        session: &NSURLSession,
        download_task: &NSURLSessionDownloadTask,
        file_offset: i64,
        expected_total_bytes: i64,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature NSURLSession only.
Expand description

Provided Methods§

Source

fn URLSession_downloadTask_didFinishDownloadingToURL( &self, session: &NSURLSession, download_task: &NSURLSessionDownloadTask, location: &NSURL, )
where Self: Sized + Message,

Available on crate feature NSURL only.
Source

fn URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite( &self, session: &NSURLSession, download_task: &NSURLSessionDownloadTask, bytes_written: i64, total_bytes_written: i64, total_bytes_expected_to_write: i64, )
where Self: Sized + Message,

Source

fn URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes( &self, session: &NSURLSession, download_task: &NSURLSessionDownloadTask, file_offset: i64, expected_total_bytes: i64, )
where Self: Sized + Message,

Trait Implementations§

Source§

impl ProtocolType for dyn NSURLSessionDownloadDelegate

Source§

const NAME: &'static str = "NSURLSessionDownloadDelegate"

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 NSURLSessionDownloadDelegate

Implementations on Foreign Types§

Source§

impl<T> NSURLSessionDownloadDelegate for ProtocolObject<T>

Implementors§