NSURLSessionWebSocketDelegate class interface
NSURLSessionWebSocketDelegate
- Implemented types
Constructors
- NSURLSessionWebSocketDelegate.castFrom(ObjCObjectBase other)
-
Constructs a NSURLSessionWebSocketDelegate that points to the same underlying object as
other. -
NSURLSessionWebSocketDelegate.castFromPointer(Pointer<
ObjCObject> other, {bool retain = false, bool release = false}) - Constructs a NSURLSessionWebSocketDelegate 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.Protocolobject for this protocol.no setter -
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
-
URLSession_webSocketTask_didCloseWithCode_reason_
→ ObjCProtocolListenableMethod<
void Function(NSURLSession, NSURLSessionWebSocketTask, NSURLSessionWebSocketCloseCode, NSData?)> -
URLSession:webSocketTask:didCloseWithCode:reason:
final
-
URLSession_webSocketTask_didOpenWithProtocol_
→ ObjCProtocolListenableMethod<
void Function(NSURLSession, NSURLSessionWebSocketTask, NSString?)> -
URLSession:webSocketTask:didOpenWithProtocol:
final
-
URLSessionDidFinishEventsForBackgroundURLSession_
→ ObjCProtocolListenableMethod<
void Function(NSURLSession)> -
URLSessionDidFinishEventsForBackgroundURLSession:
final
Static Methods
-
addToBuilder(
ObjCProtocolBuilder builder, {void URLSession_webSocketTask_didOpenWithProtocol_(NSURLSession, NSURLSessionWebSocketTask, NSString?)?, void URLSession_webSocketTask_didCloseWithCode_reason_(NSURLSession, NSURLSessionWebSocketTask, NSURLSessionWebSocketCloseCode, NSData?)?, 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 NSURLSessionWebSocketDelegate protocol to an existing
objc.ObjCProtocolBuilder.override -
addToBuilderAsBlocking(
ObjCProtocolBuilder builder, {void URLSession_webSocketTask_didOpenWithProtocol_(NSURLSession, NSURLSessionWebSocketTask, NSString?)?, void URLSession_webSocketTask_didCloseWithCode_reason_(NSURLSession, NSURLSessionWebSocketTask, NSURLSessionWebSocketCloseCode, NSData?)?, 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 NSURLSessionWebSocketDelegate protocol to an existing
objc.ObjCProtocolBuilder. All methods that can be implemented as blocking listeners will be.override -
addToBuilderAsListener(
ObjCProtocolBuilder builder, {void URLSession_webSocketTask_didOpenWithProtocol_(NSURLSession, NSURLSessionWebSocketTask, NSString?)?, void URLSession_webSocketTask_didCloseWithCode_reason_(NSURLSession, NSURLSessionWebSocketTask, NSURLSessionWebSocketCloseCode, NSData?)?, 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 NSURLSessionWebSocketDelegate protocol to an existing
objc.ObjCProtocolBuilder. All methods that can be implemented as listeners will be.override -
conformsTo(
ObjCObjectBase obj) → bool -
Returns whether
objis an instance of NSURLSessionWebSocketDelegate.override -
implement(
{void URLSession_webSocketTask_didOpenWithProtocol_(NSURLSession, NSURLSessionWebSocketTask, NSString?)?, void URLSession_webSocketTask_didCloseWithCode_reason_(NSURLSession, NSURLSessionWebSocketTask, NSURLSessionWebSocketCloseCode, NSData?)?, 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}) → NSURLSessionWebSocketDelegate -
Builds an object that implements the NSURLSessionWebSocketDelegate protocol. To implement
multiple protocols, use addToBuilder or
objc.ObjCProtocolBuilderdirectly.override -
implementAsBlocking(
{void URLSession_webSocketTask_didOpenWithProtocol_(NSURLSession, NSURLSessionWebSocketTask, NSString?)?, void URLSession_webSocketTask_didCloseWithCode_reason_(NSURLSession, NSURLSessionWebSocketTask, NSURLSessionWebSocketCloseCode, NSData?)?, 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}) → NSURLSessionWebSocketDelegate -
Builds an object that implements the NSURLSessionWebSocketDelegate protocol. To implement
multiple protocols, use addToBuilder or
objc.ObjCProtocolBuilderdirectly. All methods that can be implemented as blocking listeners will be.override -
implementAsListener(
{void URLSession_webSocketTask_didOpenWithProtocol_(NSURLSession, NSURLSessionWebSocketTask, NSString?)?, void URLSession_webSocketTask_didCloseWithCode_reason_(NSURLSession, NSURLSessionWebSocketTask, NSURLSessionWebSocketCloseCode, NSData?)?, 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}) → NSURLSessionWebSocketDelegate -
Builds an object that implements the NSURLSessionWebSocketDelegate protocol. To implement
multiple protocols, use addToBuilder or
objc.ObjCProtocolBuilderdirectly. All methods that can be implemented as listeners will be.override