pub unsafe trait NSURLSessionDataDelegate: NSURLSessionTaskDelegate {
// Provided methods
unsafe fn URLSession_dataTask_didReceiveResponse_completionHandler(
&self,
session: &NSURLSession,
data_task: &NSURLSessionDataTask,
response: &NSURLResponse,
completion_handler: &Block<dyn Fn(NSURLSessionResponseDisposition)>
)
where Self: Sized + Message { ... }
unsafe fn URLSession_dataTask_didBecomeDownloadTask(
&self,
session: &NSURLSession,
data_task: &NSURLSessionDataTask,
download_task: &NSURLSessionDownloadTask
)
where Self: Sized + Message { ... }
unsafe fn URLSession_dataTask_didBecomeStreamTask(
&self,
session: &NSURLSession,
data_task: &NSURLSessionDataTask,
stream_task: &NSURLSessionStreamTask
)
where Self: Sized + Message { ... }
unsafe fn URLSession_dataTask_didReceiveData(
&self,
session: &NSURLSession,
data_task: &NSURLSessionDataTask,
data: &NSData
)
where Self: Sized + Message { ... }
unsafe fn URLSession_dataTask_willCacheResponse_completionHandler(
&self,
session: &NSURLSession,
data_task: &NSURLSessionDataTask,
proposed_response: &NSCachedURLResponse,
completion_handler: &Block<dyn Fn(*mut NSCachedURLResponse)>
)
where Self: Sized + Message { ... }
}
Available on crate feature
NSURLSession
only.Provided Methods§
unsafe fn URLSession_dataTask_didReceiveResponse_completionHandler( &self, session: &NSURLSession, data_task: &NSURLSessionDataTask, response: &NSURLResponse, completion_handler: &Block<dyn Fn(NSURLSessionResponseDisposition)> )
Available on crate features
NSURLResponse
and block2
only.unsafe fn URLSession_dataTask_didBecomeDownloadTask( &self, session: &NSURLSession, data_task: &NSURLSessionDataTask, download_task: &NSURLSessionDownloadTask )
unsafe fn URLSession_dataTask_didBecomeStreamTask( &self, session: &NSURLSession, data_task: &NSURLSessionDataTask, stream_task: &NSURLSessionStreamTask )
unsafe fn URLSession_dataTask_didReceiveData( &self, session: &NSURLSession, data_task: &NSURLSessionDataTask, data: &NSData )
Available on crate feature
NSData
only.unsafe fn URLSession_dataTask_willCacheResponse_completionHandler( &self, session: &NSURLSession, data_task: &NSURLSessionDataTask, proposed_response: &NSCachedURLResponse, completion_handler: &Block<dyn Fn(*mut NSCachedURLResponse)> )
Available on crate features
NSURLCache
and block2
only.