NSURLConnectionDataDelegate class interface

NSURLConnectionDataDelegate

Implemented types

Constructors

NSURLConnectionDataDelegate.castFrom(ObjCObjectBase other)
Constructs a NSURLConnectionDataDelegate that points to the same underlying object as other.
NSURLConnectionDataDelegate.castFromPointer(Pointer<ObjCObject> other, {bool retain = false, bool release = false})
Constructs a NSURLConnectionDataDelegate 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
connection_canAuthenticateAgainstProtectionSpace_ → ObjCProtocolMethod<bool Function(NSURLConnection, NSURLProtectionSpace)>
connection:canAuthenticateAgainstProtectionSpace:
final
connection_didCancelAuthenticationChallenge_ → ObjCProtocolListenableMethod<void Function(NSURLConnection, NSURLAuthenticationChallenge)>
connection:didCancelAuthenticationChallenge:
final
connection_didFailWithError_ → ObjCProtocolListenableMethod<void Function(NSURLConnection, NSError)>
connection:didFailWithError:
final
connection_didReceiveAuthenticationChallenge_ → ObjCProtocolListenableMethod<void Function(NSURLConnection, NSURLAuthenticationChallenge)>
connection:didReceiveAuthenticationChallenge:
final
connection_didReceiveData_ → ObjCProtocolListenableMethod<void Function(NSURLConnection, NSData)>
connection:didReceiveData:
final
connection_didReceiveResponse_ → ObjCProtocolListenableMethod<void Function(NSURLConnection, NSURLResponse)>
connection:didReceiveResponse:
final
connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ → ObjCProtocolListenableMethod<void Function(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)>
connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:
final
connection_needNewBodyStream_ → ObjCProtocolMethod<NSInputStream? Function(NSURLConnection, NSURLRequest)>
connection:needNewBodyStream:
final
connection_willCacheResponse_ → ObjCProtocolMethod<NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse)>
connection:willCacheResponse:
final
connection_willSendRequest_redirectResponse_ → ObjCProtocolMethod<NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?)>
connection:willSendRequest:redirectResponse:
final
connection_willSendRequestForAuthenticationChallenge_ → ObjCProtocolListenableMethod<void Function(NSURLConnection, NSURLAuthenticationChallenge)>
connection:willSendRequestForAuthenticationChallenge:
final
connectionDidFinishLoading_ → ObjCProtocolListenableMethod<void Function(NSURLConnection)>
connectionDidFinishLoading:
final
connectionShouldUseCredentialStorage_ → ObjCProtocolMethod<bool Function(NSURLConnection)>
connectionShouldUseCredentialStorage:
final

Static Methods

addToBuilder(ObjCProtocolBuilder builder, {NSURLRequest? connection_willSendRequest_redirectResponse_(NSURLConnection, NSURLRequest, NSURLResponse?)?, void connection_didReceiveResponse_(NSURLConnection, NSURLResponse)?, void connection_didReceiveData_(NSURLConnection, NSData)?, NSInputStream? connection_needNewBodyStream_(NSURLConnection, NSURLRequest)?, void connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)?, NSCachedURLResponse? connection_willCacheResponse_(NSURLConnection, NSCachedURLResponse)?, void connectionDidFinishLoading_(NSURLConnection)?, void connection_didFailWithError_(NSURLConnection, NSError)?, bool connectionShouldUseCredentialStorage_(NSURLConnection)?, void connection_willSendRequestForAuthenticationChallenge_(NSURLConnection, NSURLAuthenticationChallenge)?, bool connection_canAuthenticateAgainstProtectionSpace_(NSURLConnection, NSURLProtectionSpace)?, void connection_didReceiveAuthenticationChallenge_(NSURLConnection, NSURLAuthenticationChallenge)?, void connection_didCancelAuthenticationChallenge_(NSURLConnection, NSURLAuthenticationChallenge)?, bool $keepIsolateAlive = true}) → void
Adds the implementation of the NSURLConnectionDataDelegate protocol to an existing objc.ObjCProtocolBuilder.
override
addToBuilderAsBlocking(ObjCProtocolBuilder builder, {NSURLRequest? connection_willSendRequest_redirectResponse_(NSURLConnection, NSURLRequest, NSURLResponse?)?, void connection_didReceiveResponse_(NSURLConnection, NSURLResponse)?, void connection_didReceiveData_(NSURLConnection, NSData)?, NSInputStream? connection_needNewBodyStream_(NSURLConnection, NSURLRequest)?, void connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)?, NSCachedURLResponse? connection_willCacheResponse_(NSURLConnection, NSCachedURLResponse)?, void connectionDidFinishLoading_(NSURLConnection)?, void connection_didFailWithError_(NSURLConnection, NSError)?, bool connectionShouldUseCredentialStorage_(NSURLConnection)?, void connection_willSendRequestForAuthenticationChallenge_(NSURLConnection, NSURLAuthenticationChallenge)?, bool connection_canAuthenticateAgainstProtectionSpace_(NSURLConnection, NSURLProtectionSpace)?, void connection_didReceiveAuthenticationChallenge_(NSURLConnection, NSURLAuthenticationChallenge)?, void connection_didCancelAuthenticationChallenge_(NSURLConnection, NSURLAuthenticationChallenge)?, bool $keepIsolateAlive = true}) → void
Adds the implementation of the NSURLConnectionDataDelegate protocol to an existing objc.ObjCProtocolBuilder. All methods that can be implemented as blocking listeners will be.
override
addToBuilderAsListener(ObjCProtocolBuilder builder, {NSURLRequest? connection_willSendRequest_redirectResponse_(NSURLConnection, NSURLRequest, NSURLResponse?)?, void connection_didReceiveResponse_(NSURLConnection, NSURLResponse)?, void connection_didReceiveData_(NSURLConnection, NSData)?, NSInputStream? connection_needNewBodyStream_(NSURLConnection, NSURLRequest)?, void connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)?, NSCachedURLResponse? connection_willCacheResponse_(NSURLConnection, NSCachedURLResponse)?, void connectionDidFinishLoading_(NSURLConnection)?, void connection_didFailWithError_(NSURLConnection, NSError)?, bool connectionShouldUseCredentialStorage_(NSURLConnection)?, void connection_willSendRequestForAuthenticationChallenge_(NSURLConnection, NSURLAuthenticationChallenge)?, bool connection_canAuthenticateAgainstProtectionSpace_(NSURLConnection, NSURLProtectionSpace)?, void connection_didReceiveAuthenticationChallenge_(NSURLConnection, NSURLAuthenticationChallenge)?, void connection_didCancelAuthenticationChallenge_(NSURLConnection, NSURLAuthenticationChallenge)?, bool $keepIsolateAlive = true}) → void
Adds the implementation of the NSURLConnectionDataDelegate 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 NSURLConnectionDataDelegate.
override
implement({NSURLRequest? connection_willSendRequest_redirectResponse_(NSURLConnection, NSURLRequest, NSURLResponse?)?, void connection_didReceiveResponse_(NSURLConnection, NSURLResponse)?, void connection_didReceiveData_(NSURLConnection, NSData)?, NSInputStream? connection_needNewBodyStream_(NSURLConnection, NSURLRequest)?, void connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)?, NSCachedURLResponse? connection_willCacheResponse_(NSURLConnection, NSCachedURLResponse)?, void connectionDidFinishLoading_(NSURLConnection)?, void connection_didFailWithError_(NSURLConnection, NSError)?, bool connectionShouldUseCredentialStorage_(NSURLConnection)?, void connection_willSendRequestForAuthenticationChallenge_(NSURLConnection, NSURLAuthenticationChallenge)?, bool connection_canAuthenticateAgainstProtectionSpace_(NSURLConnection, NSURLProtectionSpace)?, void connection_didReceiveAuthenticationChallenge_(NSURLConnection, NSURLAuthenticationChallenge)?, void connection_didCancelAuthenticationChallenge_(NSURLConnection, NSURLAuthenticationChallenge)?, bool $keepIsolateAlive = true}) → NSURLConnectionDataDelegate
Builds an object that implements the NSURLConnectionDataDelegate protocol. To implement multiple protocols, use addToBuilder or objc.ObjCProtocolBuilder directly.
override
implementAsBlocking({NSURLRequest? connection_willSendRequest_redirectResponse_(NSURLConnection, NSURLRequest, NSURLResponse?)?, void connection_didReceiveResponse_(NSURLConnection, NSURLResponse)?, void connection_didReceiveData_(NSURLConnection, NSData)?, NSInputStream? connection_needNewBodyStream_(NSURLConnection, NSURLRequest)?, void connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)?, NSCachedURLResponse? connection_willCacheResponse_(NSURLConnection, NSCachedURLResponse)?, void connectionDidFinishLoading_(NSURLConnection)?, void connection_didFailWithError_(NSURLConnection, NSError)?, bool connectionShouldUseCredentialStorage_(NSURLConnection)?, void connection_willSendRequestForAuthenticationChallenge_(NSURLConnection, NSURLAuthenticationChallenge)?, bool connection_canAuthenticateAgainstProtectionSpace_(NSURLConnection, NSURLProtectionSpace)?, void connection_didReceiveAuthenticationChallenge_(NSURLConnection, NSURLAuthenticationChallenge)?, void connection_didCancelAuthenticationChallenge_(NSURLConnection, NSURLAuthenticationChallenge)?, bool $keepIsolateAlive = true}) → NSURLConnectionDataDelegate
Builds an object that implements the NSURLConnectionDataDelegate protocol. To implement multiple protocols, use addToBuilder or objc.ObjCProtocolBuilder directly. All methods that can be implemented as blocking listeners will be.
override
implementAsListener({NSURLRequest? connection_willSendRequest_redirectResponse_(NSURLConnection, NSURLRequest, NSURLResponse?)?, void connection_didReceiveResponse_(NSURLConnection, NSURLResponse)?, void connection_didReceiveData_(NSURLConnection, NSData)?, NSInputStream? connection_needNewBodyStream_(NSURLConnection, NSURLRequest)?, void connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)?, NSCachedURLResponse? connection_willCacheResponse_(NSURLConnection, NSCachedURLResponse)?, void connectionDidFinishLoading_(NSURLConnection)?, void connection_didFailWithError_(NSURLConnection, NSError)?, bool connectionShouldUseCredentialStorage_(NSURLConnection)?, void connection_willSendRequestForAuthenticationChallenge_(NSURLConnection, NSURLAuthenticationChallenge)?, bool connection_canAuthenticateAgainstProtectionSpace_(NSURLConnection, NSURLProtectionSpace)?, void connection_didReceiveAuthenticationChallenge_(NSURLConnection, NSURLAuthenticationChallenge)?, void connection_didCancelAuthenticationChallenge_(NSURLConnection, NSURLAuthenticationChallenge)?, bool $keepIsolateAlive = true}) → NSURLConnectionDataDelegate
Builds an object that implements the NSURLConnectionDataDelegate protocol. To implement multiple protocols, use addToBuilder or objc.ObjCProtocolBuilder directly. All methods that can be implemented as listeners will be.
override