Instance Method

URLSession:streamTask:didBecomeInputStream:outputStream:

Tells the delegate that the stream task has been completed as a result of the stream task calling the captureStreams method.

Declaration

- (void)URLSession:(NSURLSession *)session streamTask:(NSURLSessionStreamTask *)streamTask didBecomeInputStream:(NSInputStream *)inputStream outputStream:(NSOutputStream *)outputStream;

Parameters

session

The session of the stream task that has been completed.

streamTask

The stream task that has been completed.

inputStream

The created input stream. This NSInputStream object is unopened.

outputStream

The created output stream. This NSOutputStream object is unopened

Discussion

This delegate method will only be called after all enqueued reads and writes for the stream task have been completed.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software