Contents

isExpensive

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

Declaration

var isExpensive: Bool { get }

Discussion

The system considers an interface expensive if it’s 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 URLSessionConfiguration or allowsExpensiveNetworkAccess on URLRequest.

See Also

Accessing transaction characteristics