Instance Method

init

Creates a transaction metrics instance.

Declaration

- (instancetype)init;

Discussion

You should never need to create your own NSURLSessionTaskTransactionMetrics instances. The NSURLSession creates task transaction metrics as part of the NSURLSessionTaskMetrics instance that it delivers to the URLSession:task:didFinishCollectingMetrics: method of NSURLSessionTaskDelegate.