Instance Property

expensive

A Boolean value that indicates whether the connection operates over an expensive interface.

Declaration

@property(readonly, getter=isExpensive) BOOL expensive;

Discussion

An expensive interface is one which is more costly or consumes more power, such as 3G or LTE as compared to ethernet or Wi-Fi. You permit or deny use of expensive interfaces with the allowsExpensiveNetworkAccess property on NSURLSessionConfiguration or allowsExpensiveNetworkAccess on NSMutableURLRequest.

See Also

Accessing Transaction Characteristics

networkProtocolName

The network protocol used to fetch the resource.

remoteAddress

The IP address string of the remote interface for the connection.

remotePort

The port number of the remote interface for the connection.

localAddress

The IP address string of the local interface for the connection.

localPort

The port number of the local interface for the connection.

negotiatedTLSCipherSuite

The TLS cipher suite the task negotiated with the endpoint for the connection.

negotiatedTLSProtocolVersion

The TLS protocol version the task negotiated with the endpoint for the connection.

cellular

A Boolean value that indicates whether the connection operates over a cellular interface.

constrained

A Boolean value that indicates whether the connection operates over an interface marked as constrained.

proxyConnection

A Boolean value that indicastes whether the task used a proxy connection to fetch the resource.

reusedConnection

A Boolean value that indicates whether the task used a persistent connection to fetch the resource.

multipath

A Boolean value that indicates whether the connection uses a successfully negotiated multipath protocol.

resourceFetchType

A value that indicates whether the resource was loaded, pushed, or retrieved from the local cache.

NSURLSessionTaskMetricsResourceFetchType

The manner in which a resource is fetched.