<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/URLSessionTaskTransactionMetrics/isExpensive",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSURLSessionTaskTransactionMetrics(py)expensive"
  },
  "title" : "isExpensive"
}
-->

# isExpensive

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

```
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`](/documentation/Foundation/URLSessionConfiguration/allowsExpensiveNetworkAccess) property on [`URLSessionConfiguration`](/documentation/Foundation/URLSessionConfiguration) or [`allowsExpensiveNetworkAccess`](/documentation/Foundation/URLRequest/allowsExpensiveNetworkAccess) on [`URLRequest`](/documentation/Foundation/URLRequest).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)