public interface NSURLSessionStreamDelegate extends NSURLSessionTaskDelegate
NSURLSessionTaskDelegate.Block_URLSessionTaskDidReceiveChallengeCompletionHandler, NSURLSessionTaskDelegate.Block_URLSessionTaskNeedNewBodyStream, NSURLSessionTaskDelegate.Block_URLSessionTaskWillBeginDelayedRequestCompletionHandler, NSURLSessionTaskDelegate.Block_URLSessionTaskWillPerformHTTPRedirectionNewRequestCompletionHandlerNSURLSessionDelegate.Block_URLSessionDidReceiveChallengeCompletionHandler| Modifier and Type | Method and Description |
|---|---|
default void |
URLSessionBetterRouteDiscoveredForStreamTask(NSURLSession session,
NSURLSessionStreamTask streamTask)
A notification that the system has determined that a better route
to the host has been detected (eg, a wi-fi interface becoming
available.) This is a hint to the delegate that it may be
desirable to create a new task for subsequent work.
|
default void |
URLSessionReadClosedForStreamTask(NSURLSession session,
NSURLSessionStreamTask streamTask)
Indiciates that the read side of a connection has been closed.
|
default void |
URLSessionStreamTaskDidBecomeInputStreamOutputStream(NSURLSession session,
NSURLSessionStreamTask streamTask,
NSInputStream inputStream,
NSOutputStream outputStream)
The given task has been completed, and unopened NSInputStream and
NSOutputStream objects are created from the underlying network
connection.
|
default void |
URLSessionWriteClosedForStreamTask(NSURLSession session,
NSURLSessionStreamTask streamTask)
Indiciates that the write side of a connection has been closed.
|
URLSessionTaskDidCompleteWithError, URLSessionTaskDidFinishCollectingMetrics, URLSessionTaskDidReceiveChallengeCompletionHandler, URLSessionTaskDidSendBodyDataTotalBytesSentTotalBytesExpectedToSend, URLSessionTaskIsWaitingForConnectivity, URLSessionTaskNeedNewBodyStream, URLSessionTaskWillBeginDelayedRequestCompletionHandler, URLSessionTaskWillPerformHTTPRedirectionNewRequestCompletionHandlerURLSessionDidBecomeInvalidWithError, URLSessionDidFinishEventsForBackgroundURLSession, URLSessionDidReceiveChallengeCompletionHandlerdefault void URLSessionBetterRouteDiscoveredForStreamTask(NSURLSession session, NSURLSessionStreamTask streamTask)
default void URLSessionReadClosedForStreamTask(NSURLSession session, NSURLSessionStreamTask streamTask)
default void URLSessionStreamTaskDidBecomeInputStreamOutputStream(NSURLSession session, NSURLSessionStreamTask streamTask, NSInputStream inputStream, NSOutputStream outputStream)
default void URLSessionWriteClosedForStreamTask(NSURLSession session, NSURLSessionStreamTask streamTask)