NSURLSessionStreamDelegate class interface

NSURLSessionStreamDelegate

Implemented types

Constructors

NSURLSessionStreamDelegate.castFrom(ObjCObjectBase other)
Constructs a NSURLSessionStreamDelegate that points to the same underlying object as other.
NSURLSessionStreamDelegate.castFromPointer(Pointer<ObjCObject> other, {bool retain = false, bool release = false})
Constructs a NSURLSessionStreamDelegate 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_betterRouteDiscoveredForStreamTask_ → ObjCProtocolListenableMethod<void Function(NSURLSession, NSURLSessionStreamTask)>
URLSession:betterRouteDiscoveredForStreamTask:
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_readClosedForStreamTask_ → ObjCProtocolListenableMethod<void Function(NSURLSession, NSURLSessionStreamTask)>
URLSession:readClosedForStreamTask:
final
URLSession_streamTask_didBecomeInputStream_outputStream_ → ObjCProtocolListenableMethod<void Function(NSURLSession, NSURLSessionStreamTask, NSInputStream, NSOutputStream)>
URLSession:streamTask:didBecomeInputStream:outputStream:
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
URLSession_writeClosedForStreamTask_ → ObjCProtocolListenableMethod<void Function(NSURLSession, NSURLSessionStreamTask)>
URLSession:writeClosedForStreamTask:
final
URLSessionDidFinishEventsForBackgroundURLSession_ → ObjCProtocolListenableMethod<void Function(NSURLSession)>
URLSessionDidFinishEventsForBackgroundURLSession:
final

Static Methods

addToBuilder(ObjCProtocolBuilder builder, {void URLSession_readClosedForStreamTask_(NSURLSession, NSURLSessionStreamTask)?, void URLSession_writeClosedForStreamTask_(NSURLSession, NSURLSessionStreamTask)?, void URLSession_betterRouteDiscoveredForStreamTask_(NSURLSession, NSURLSessionStreamTask)?, void URLSession_streamTask_didBecomeInputStream_outputStream_(NSURLSession, NSURLSessionStreamTask, NSInputStream, NSOutputStream)?, 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 NSURLSessionStreamDelegate protocol to an existing objc.ObjCProtocolBuilder.
override
addToBuilderAsBlocking(ObjCProtocolBuilder builder, {void URLSession_readClosedForStreamTask_(NSURLSession, NSURLSessionStreamTask)?, void URLSession_writeClosedForStreamTask_(NSURLSession, NSURLSessionStreamTask)?, void URLSession_betterRouteDiscoveredForStreamTask_(NSURLSession, NSURLSessionStreamTask)?, void URLSession_streamTask_didBecomeInputStream_outputStream_(NSURLSession, NSURLSessionStreamTask, NSInputStream, NSOutputStream)?, 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 NSURLSessionStreamDelegate protocol to an existing objc.ObjCProtocolBuilder. All methods that can be implemented as blocking listeners will be.
override
addToBuilderAsListener(ObjCProtocolBuilder builder, {void URLSession_readClosedForStreamTask_(NSURLSession, NSURLSessionStreamTask)?, void URLSession_writeClosedForStreamTask_(NSURLSession, NSURLSessionStreamTask)?, void URLSession_betterRouteDiscoveredForStreamTask_(NSURLSession, NSURLSessionStreamTask)?, void URLSession_streamTask_didBecomeInputStream_outputStream_(NSURLSession, NSURLSessionStreamTask, NSInputStream, NSOutputStream)?, 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 NSURLSessionStreamDelegate 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 NSURLSessionStreamDelegate.
override
implement({void URLSession_readClosedForStreamTask_(NSURLSession, NSURLSessionStreamTask)?, void URLSession_writeClosedForStreamTask_(NSURLSession, NSURLSessionStreamTask)?, void URLSession_betterRouteDiscoveredForStreamTask_(NSURLSession, NSURLSessionStreamTask)?, void URLSession_streamTask_didBecomeInputStream_outputStream_(NSURLSession, NSURLSessionStreamTask, NSInputStream, NSOutputStream)?, 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}) → NSURLSessionStreamDelegate
Builds an object that implements the NSURLSessionStreamDelegate protocol. To implement multiple protocols, use addToBuilder or objc.ObjCProtocolBuilder directly.
override
implementAsBlocking({void URLSession_readClosedForStreamTask_(NSURLSession, NSURLSessionStreamTask)?, void URLSession_writeClosedForStreamTask_(NSURLSession, NSURLSessionStreamTask)?, void URLSession_betterRouteDiscoveredForStreamTask_(NSURLSession, NSURLSessionStreamTask)?, void URLSession_streamTask_didBecomeInputStream_outputStream_(NSURLSession, NSURLSessionStreamTask, NSInputStream, NSOutputStream)?, 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}) → NSURLSessionStreamDelegate
Builds an object that implements the NSURLSessionStreamDelegate 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_readClosedForStreamTask_(NSURLSession, NSURLSessionStreamTask)?, void URLSession_writeClosedForStreamTask_(NSURLSession, NSURLSessionStreamTask)?, void URLSession_betterRouteDiscoveredForStreamTask_(NSURLSession, NSURLSessionStreamTask)?, void URLSession_streamTask_didBecomeInputStream_outputStream_(NSURLSession, NSURLSessionStreamTask, NSInputStream, NSOutputStream)?, 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}) → NSURLSessionStreamDelegate
Builds an object that implements the NSURLSessionStreamDelegate protocol. To implement multiple protocols, use addToBuilder or objc.ObjCProtocolBuilder directly. All methods that can be implemented as listeners will be.
override