Contents

isConstrained

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

Declaration

var isConstrained: Bool { get }

Discussion

A constrained interface is one the user marks as constrained by selecting “Low Data Mode” in the Settings app. You permit or deny use of constrained interfaces with the allowsConstrainedNetworkAccess property on URLSessionConfiguration or allowsConstrainedNetworkAccess on URLRequest.

See Also

Accessing transaction characteristics