Instance Method

URLSession:task:didFinishCollectingMetrics:

Tells the delegate that the session finished collecting metrics for the task.

Declaration

- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didFinishCollectingMetrics:(NSURLSessionTaskMetrics *)metrics;

Parameters

session

The session collecting the metrics.

task

The task whose metrics have been collected.

metrics

The collected metrics.

See Also

Delegate Methods

URLSession:task:didReceiveChallenge:completionHandler:

Requests credentials from the delegate in response to an authentication request from the remote server.

URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:

Periodically informs the delegate of the progress of sending body content to the server.

URLSession:task:needNewBodyStream:

Tells the delegate when a task requires a new request body stream to send to the remote server.

URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:

Tells the delegate that the remote server requested an HTTP redirect.

NSURLSessionTaskMetrics

An NSURLSessionTaskMetrics object encapsulates the metrics for a session task. Each object contains the taskInterval and redirectCount, as well as metrics for each request / response transaction made during the execution of the task.

URLSession:task:didCompleteWithError:

Tells the delegate that the task finished transferring data.