Enumeration Case

URLError.NetworkUnavailableReason.expensive

A reason that indicates network is unavailable because the system marked the interface as expensive.

Declaration

case expensive

Discussion

The system determines what constitutes “expensive” based on the nature of the network interface and other factors. iOS 13 considers most cellular networks and personal hotspots expensive.

This reason occurs when the following conditions are true:

See Also

Unavailability Reasons

case cellular

A reason that indicates network is unavailable because the interface is cellular and cellular network is disabled.

case constrained

A reason that indicates network is unavailable because the user enabled “Low Data Mode” in the Settings app.