NSURLSessionDataDelegate class interface

NSURLSessionDataDelegate

Implemented types

Constructors

NSURLSessionDataDelegate.castFrom(ObjCObjectBase other)
Constructs a NSURLSessionDataDelegate that points to the same underlying object as other.
NSURLSessionDataDelegate.castFromPointer(Pointer<ObjCObject> other, {bool retain = false, bool release = false})
Constructs a NSURLSessionDataDelegate that wraps the given raw object pointer.

Properties

hashCode → int
The hash code for this object.
no setterinherited
ref → ObjCObjectRef
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

$protocol → Protocol
Returns the objc.Protocol object for this protocol.
no setter
URLSession_dataTask_didBecomeDownloadTask_ → ObjCProtocolListenableMethod<void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)>
URLSession:dataTask:didBecomeDownloadTask:
final
URLSession_dataTask_didBecomeStreamTask_ → ObjCProtocolListenableMethod<void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)>
URLSession:dataTask:didBecomeStreamTask:
final
URLSession_dataTask_didReceiveData_ → ObjCProtocolListenableMethod<void Function(NSURLSession, NSURLSessionDataTask, NSData)>
URLSession:dataTask:didReceiveData:
final
URLSession_dataTask_didReceiveResponse_completionHandler_ → ObjCProtocolListenableMethod<void Function(NSURLSession, NSURLSessionDataTask, NSURLResponse, ObjCBlock<Void Function(NSInteger)>)>
URLSession:dataTask:didReceiveResponse:completionHandler:
final
URLSession_dataTask_willCacheResponse_completionHandler_ → ObjCProtocolListenableMethod<void Function(NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, ObjCBlock<Void Function(NSCachedURLResponse?)>)>
URLSession:dataTask:willCacheResponse:completionHandler:
final
URLSession_didBecomeInvalidWithError_ → ObjCProtocolListenableMethod<void Function(NSURLSession, NSError?)>
URLSession:didBecomeInvalidWithError:
final
URLSession_didCreateTask_ → ObjCProtocolListenableMethod<void Function(NSURLSession, NSURLSessionTask)>
URLSession:didCreateTask:
final
URLSession_didReceiveChallenge_completionHandler_ → ObjCProtocolListenableMethod<void Function(NSURLSession, NSURLAuthenticationChallenge, ObjCBlock<Void Function(NSInteger, NSURLCredential?)>)>
URLSession:didReceiveChallenge:completionHandler:
final
URLSession_task_didCompleteWithError_ → ObjCProtocolListenableMethod<void Function(NSURLSession, NSURLSessionTask, NSError?)>
URLSession:task:didCompleteWithError:
final
URLSession_task_didFinishCollectingMetrics_ → ObjCProtocolListenableMethod<void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)>
URLSession:task:didFinishCollectingMetrics:
final
URLSession_task_didReceiveChallenge_completionHandler_ → ObjCProtocolListenableMethod<void Function(NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, ObjCBlock<Void Function(NSInteger, NSURLCredential?)>)>
URLSession:task:didReceiveChallenge:completionHandler:
final
URLSession_task_didReceiveInformationalResponse_ → ObjCProtocolListenableMethod<void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)>
URLSession:task:didReceiveInformationalResponse:
final
URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ → ObjCProtocolListenableMethod<void Function(NSURLSession, NSURLSessionTask, int, int, int)>
URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:
final
URLSession_task_needNewBodyStream_ → ObjCProtocolListenableMethod<void Function(NSURLSession, NSURLSessionTask, ObjCBlock<Void Function(NSInputStream?)>)>
URLSession:task:needNewBodyStream:
final
URLSession_task_needNewBodyStreamFromOffset_completionHandler_ → ObjCProtocolListenableMethod<void Function(NSURLSession, NSURLSessionTask, int, ObjCBlock<Void Function(NSInputStream?)>)>
URLSession:task:needNewBodyStreamFromOffset:completionHandler:
final
URLSession_task_willBeginDelayedRequest_completionHandler_ → ObjCProtocolListenableMethod<void Function(NSURLSession, NSURLSessionTask, NSURLRequest, ObjCBlock<Void Function(NSInteger, NSURLRequest?)>)>
URLSession:task:willBeginDelayedRequest:completionHandler:
final
URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ → ObjCProtocolListenableMethod<void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, NSURLRequest, ObjCBlock<Void Function(NSURLRequest?)>)>
URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:
final
URLSession_taskIsWaitingForConnectivity_ → ObjCProtocolListenableMethod<void Function(NSURLSession, NSURLSessionTask)>
URLSession:taskIsWaitingForConnectivity:
final
URLSessionDidFinishEventsForBackgroundURLSession_ → ObjCProtocolListenableMethod<void Function(NSURLSession)>
URLSessionDidFinishEventsForBackgroundURLSession:
final

Static Methods

addToBuilder(ObjCProtocolBuilder builder, {void URLSession_dataTask_didReceiveResponse_completionHandler_(NSURLSession, NSURLSessionDataTask, NSURLResponse, ObjCBlock<Void Function(NSInteger)>)?, void URLSession_dataTask_didBecomeDownloadTask_(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)?, void URLSession_dataTask_didBecomeStreamTask_(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)?, void URLSession_dataTask_didReceiveData_(NSURLSession, NSURLSessionDataTask, NSData)?, void URLSession_dataTask_willCacheResponse_completionHandler_(NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, ObjCBlock<Void Function(NSCachedURLResponse?)>)?, void URLSession_didCreateTask_(NSURLSession, NSURLSessionTask)?, void URLSession_task_willBeginDelayedRequest_completionHandler_(NSURLSession, NSURLSessionTask, NSURLRequest, ObjCBlock<Void Function(NSInteger, NSURLRequest?)>)?, void URLSession_taskIsWaitingForConnectivity_(NSURLSession, NSURLSessionTask)?, void URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, NSURLRequest, ObjCBlock<Void Function(NSURLRequest?)>)?, void URLSession_task_didReceiveChallenge_completionHandler_(NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, ObjCBlock<Void Function(NSInteger, NSURLCredential?)>)?, void URLSession_task_needNewBodyStream_(NSURLSession, NSURLSessionTask, ObjCBlock<Void Function(NSInputStream?)>)?, void URLSession_task_needNewBodyStreamFromOffset_completionHandler_(NSURLSession, NSURLSessionTask, int, ObjCBlock<Void Function(NSInputStream?)>)?, void URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_(NSURLSession, NSURLSessionTask, int, int, int)?, void URLSession_task_didReceiveInformationalResponse_(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)?, void URLSession_task_didFinishCollectingMetrics_(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)?, void URLSession_task_didCompleteWithError_(NSURLSession, NSURLSessionTask, NSError?)?, void URLSession_didBecomeInvalidWithError_(NSURLSession, NSError?)?, void URLSession_didReceiveChallenge_completionHandler_(NSURLSession, NSURLAuthenticationChallenge, ObjCBlock<Void Function(NSInteger, NSURLCredential?)>)?, void URLSessionDidFinishEventsForBackgroundURLSession_(NSURLSession)?, bool $keepIsolateAlive = true}) → void
Adds the implementation of the NSURLSessionDataDelegate protocol to an existing objc.ObjCProtocolBuilder.
override
addToBuilderAsBlocking(ObjCProtocolBuilder builder, {void URLSession_dataTask_didReceiveResponse_completionHandler_(NSURLSession, NSURLSessionDataTask, NSURLResponse, ObjCBlock<Void Function(NSInteger)>)?, void URLSession_dataTask_didBecomeDownloadTask_(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)?, void URLSession_dataTask_didBecomeStreamTask_(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)?, void URLSession_dataTask_didReceiveData_(NSURLSession, NSURLSessionDataTask, NSData)?, void URLSession_dataTask_willCacheResponse_completionHandler_(NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, ObjCBlock<Void Function(NSCachedURLResponse?)>)?, void URLSession_didCreateTask_(NSURLSession, NSURLSessionTask)?, void URLSession_task_willBeginDelayedRequest_completionHandler_(NSURLSession, NSURLSessionTask, NSURLRequest, ObjCBlock<Void Function(NSInteger, NSURLRequest?)>)?, void URLSession_taskIsWaitingForConnectivity_(NSURLSession, NSURLSessionTask)?, void URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, NSURLRequest, ObjCBlock<Void Function(NSURLRequest?)>)?, void URLSession_task_didReceiveChallenge_completionHandler_(NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, ObjCBlock<Void Function(NSInteger, NSURLCredential?)>)?, void URLSession_task_needNewBodyStream_(NSURLSession, NSURLSessionTask, ObjCBlock<Void Function(NSInputStream?)>)?, void URLSession_task_needNewBodyStreamFromOffset_completionHandler_(NSURLSession, NSURLSessionTask, int, ObjCBlock<Void Function(NSInputStream?)>)?, void URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_(NSURLSession, NSURLSessionTask, int, int, int)?, void URLSession_task_didReceiveInformationalResponse_(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)?, void URLSession_task_didFinishCollectingMetrics_(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)?, void URLSession_task_didCompleteWithError_(NSURLSession, NSURLSessionTask, NSError?)?, void URLSession_didBecomeInvalidWithError_(NSURLSession, NSError?)?, void URLSession_didReceiveChallenge_completionHandler_(NSURLSession, NSURLAuthenticationChallenge, ObjCBlock<Void Function(NSInteger, NSURLCredential?)>)?, void URLSessionDidFinishEventsForBackgroundURLSession_(NSURLSession)?, bool $keepIsolateAlive = true}) → void
Adds the implementation of the NSURLSessionDataDelegate protocol to an existing objc.ObjCProtocolBuilder. All methods that can be implemented as blocking listeners will be.
override
addToBuilderAsListener(ObjCProtocolBuilder builder, {void URLSession_dataTask_didReceiveResponse_completionHandler_(NSURLSession, NSURLSessionDataTask, NSURLResponse, ObjCBlock<Void Function(NSInteger)>)?, void URLSession_dataTask_didBecomeDownloadTask_(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)?, void URLSession_dataTask_didBecomeStreamTask_(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)?, void URLSession_dataTask_didReceiveData_(NSURLSession, NSURLSessionDataTask, NSData)?, void URLSession_dataTask_willCacheResponse_completionHandler_(NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, ObjCBlock<Void Function(NSCachedURLResponse?)>)?, void URLSession_didCreateTask_(NSURLSession, NSURLSessionTask)?, void URLSession_task_willBeginDelayedRequest_completionHandler_(NSURLSession, NSURLSessionTask, NSURLRequest, ObjCBlock<Void Function(NSInteger, NSURLRequest?)>)?, void URLSession_taskIsWaitingForConnectivity_(NSURLSession, NSURLSessionTask)?, void URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, NSURLRequest, ObjCBlock<Void Function(NSURLRequest?)>)?, void URLSession_task_didReceiveChallenge_completionHandler_(NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, ObjCBlock<Void Function(NSInteger, NSURLCredential?)>)?, void URLSession_task_needNewBodyStream_(NSURLSession, NSURLSessionTask, ObjCBlock<Void Function(NSInputStream?)>)?, void URLSession_task_needNewBodyStreamFromOffset_completionHandler_(NSURLSession, NSURLSessionTask, int, ObjCBlock<Void Function(NSInputStream?)>)?, void URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_(NSURLSession, NSURLSessionTask, int, int, int)?, void URLSession_task_didReceiveInformationalResponse_(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)?, void URLSession_task_didFinishCollectingMetrics_(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)?, void URLSession_task_didCompleteWithError_(NSURLSession, NSURLSessionTask, NSError?)?, void URLSession_didBecomeInvalidWithError_(NSURLSession, NSError?)?, void URLSession_didReceiveChallenge_completionHandler_(NSURLSession, NSURLAuthenticationChallenge, ObjCBlock<Void Function(NSInteger, NSURLCredential?)>)?, void URLSessionDidFinishEventsForBackgroundURLSession_(NSURLSession)?, bool $keepIsolateAlive = true}) → void
Adds the implementation of the NSURLSessionDataDelegate protocol to an existing objc.ObjCProtocolBuilder. All methods that can be implemented as listeners will be.
override
conformsTo(ObjCObjectBase obj) → bool
Returns whether obj is an instance of NSURLSessionDataDelegate.
override
implement({void URLSession_dataTask_didReceiveResponse_completionHandler_(NSURLSession, NSURLSessionDataTask, NSURLResponse, ObjCBlock<Void Function(NSInteger)>)?, void URLSession_dataTask_didBecomeDownloadTask_(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)?, void URLSession_dataTask_didBecomeStreamTask_(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)?, void URLSession_dataTask_didReceiveData_(NSURLSession, NSURLSessionDataTask, NSData)?, void URLSession_dataTask_willCacheResponse_completionHandler_(NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, ObjCBlock<Void Function(NSCachedURLResponse?)>)?, void URLSession_didCreateTask_(NSURLSession, NSURLSessionTask)?, void URLSession_task_willBeginDelayedRequest_completionHandler_(NSURLSession, NSURLSessionTask, NSURLRequest, ObjCBlock<Void Function(NSInteger, NSURLRequest?)>)?, void URLSession_taskIsWaitingForConnectivity_(NSURLSession, NSURLSessionTask)?, void URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, NSURLRequest, ObjCBlock<Void Function(NSURLRequest?)>)?, void URLSession_task_didReceiveChallenge_completionHandler_(NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, ObjCBlock<Void Function(NSInteger, NSURLCredential?)>)?, void URLSession_task_needNewBodyStream_(NSURLSession, NSURLSessionTask, ObjCBlock<Void Function(NSInputStream?)>)?, void URLSession_task_needNewBodyStreamFromOffset_completionHandler_(NSURLSession, NSURLSessionTask, int, ObjCBlock<Void Function(NSInputStream?)>)?, void URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_(NSURLSession, NSURLSessionTask, int, int, int)?, void URLSession_task_didReceiveInformationalResponse_(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)?, void URLSession_task_didFinishCollectingMetrics_(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)?, void URLSession_task_didCompleteWithError_(NSURLSession, NSURLSessionTask, NSError?)?, void URLSession_didBecomeInvalidWithError_(NSURLSession, NSError?)?, void URLSession_didReceiveChallenge_completionHandler_(NSURLSession, NSURLAuthenticationChallenge, ObjCBlock<Void Function(NSInteger, NSURLCredential?)>)?, void URLSessionDidFinishEventsForBackgroundURLSession_(NSURLSession)?, bool $keepIsolateAlive = true}) → NSURLSessionDataDelegate
Builds an object that implements the NSURLSessionDataDelegate protocol. To implement multiple protocols, use addToBuilder or objc.ObjCProtocolBuilder directly.
override
implementAsBlocking({void URLSession_dataTask_didReceiveResponse_completionHandler_(NSURLSession, NSURLSessionDataTask, NSURLResponse, ObjCBlock<Void Function(NSInteger)>)?, void URLSession_dataTask_didBecomeDownloadTask_(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)?, void URLSession_dataTask_didBecomeStreamTask_(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)?, void URLSession_dataTask_didReceiveData_(NSURLSession, NSURLSessionDataTask, NSData)?, void URLSession_dataTask_willCacheResponse_completionHandler_(NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, ObjCBlock<Void Function(NSCachedURLResponse?)>)?, void URLSession_didCreateTask_(NSURLSession, NSURLSessionTask)?, void URLSession_task_willBeginDelayedRequest_completionHandler_(NSURLSession, NSURLSessionTask, NSURLRequest, ObjCBlock<Void Function(NSInteger, NSURLRequest?)>)?, void URLSession_taskIsWaitingForConnectivity_(NSURLSession, NSURLSessionTask)?, void URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, NSURLRequest, ObjCBlock<Void Function(NSURLRequest?)>)?, void URLSession_task_didReceiveChallenge_completionHandler_(NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, ObjCBlock<Void Function(NSInteger, NSURLCredential?)>)?, void URLSession_task_needNewBodyStream_(NSURLSession, NSURLSessionTask, ObjCBlock<Void Function(NSInputStream?)>)?, void URLSession_task_needNewBodyStreamFromOffset_completionHandler_(NSURLSession, NSURLSessionTask, int, ObjCBlock<Void Function(NSInputStream?)>)?, void URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_(NSURLSession, NSURLSessionTask, int, int, int)?, void URLSession_task_didReceiveInformationalResponse_(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)?, void URLSession_task_didFinishCollectingMetrics_(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)?, void URLSession_task_didCompleteWithError_(NSURLSession, NSURLSessionTask, NSError?)?, void URLSession_didBecomeInvalidWithError_(NSURLSession, NSError?)?, void URLSession_didReceiveChallenge_completionHandler_(NSURLSession, NSURLAuthenticationChallenge, ObjCBlock<Void Function(NSInteger, NSURLCredential?)>)?, void URLSessionDidFinishEventsForBackgroundURLSession_(NSURLSession)?, bool $keepIsolateAlive = true}) → NSURLSessionDataDelegate
Builds an object that implements the NSURLSessionDataDelegate protocol. To implement multiple protocols, use addToBuilder or objc.ObjCProtocolBuilder directly. All methods that can be implemented as blocking listeners will be.
override
implementAsListener({void URLSession_dataTask_didReceiveResponse_completionHandler_(NSURLSession, NSURLSessionDataTask, NSURLResponse, ObjCBlock<Void Function(NSInteger)>)?, void URLSession_dataTask_didBecomeDownloadTask_(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)?, void URLSession_dataTask_didBecomeStreamTask_(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)?, void URLSession_dataTask_didReceiveData_(NSURLSession, NSURLSessionDataTask, NSData)?, void URLSession_dataTask_willCacheResponse_completionHandler_(NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, ObjCBlock<Void Function(NSCachedURLResponse?)>)?, void URLSession_didCreateTask_(NSURLSession, NSURLSessionTask)?, void URLSession_task_willBeginDelayedRequest_completionHandler_(NSURLSession, NSURLSessionTask, NSURLRequest, ObjCBlock<Void Function(NSInteger, NSURLRequest?)>)?, void URLSession_taskIsWaitingForConnectivity_(NSURLSession, NSURLSessionTask)?, void URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, NSURLRequest, ObjCBlock<Void Function(NSURLRequest?)>)?, void URLSession_task_didReceiveChallenge_completionHandler_(NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, ObjCBlock<Void Function(NSInteger, NSURLCredential?)>)?, void URLSession_task_needNewBodyStream_(NSURLSession, NSURLSessionTask, ObjCBlock<Void Function(NSInputStream?)>)?, void URLSession_task_needNewBodyStreamFromOffset_completionHandler_(NSURLSession, NSURLSessionTask, int, ObjCBlock<Void Function(NSInputStream?)>)?, void URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_(NSURLSession, NSURLSessionTask, int, int, int)?, void URLSession_task_didReceiveInformationalResponse_(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)?, void URLSession_task_didFinishCollectingMetrics_(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)?, void URLSession_task_didCompleteWithError_(NSURLSession, NSURLSessionTask, NSError?)?, void URLSession_didBecomeInvalidWithError_(NSURLSession, NSError?)?, void URLSession_didReceiveChallenge_completionHandler_(NSURLSession, NSURLAuthenticationChallenge, ObjCBlock<Void Function(NSInteger, NSURLCredential?)>)?, void URLSessionDidFinishEventsForBackgroundURLSession_(NSURLSession)?, bool $keepIsolateAlive = true}) → NSURLSessionDataDelegate
Builds an object that implements the NSURLSessionDataDelegate protocol. To implement multiple protocols, use addToBuilder or objc.ObjCProtocolBuilder directly. All methods that can be implemented as listeners will be.
override