public final class NSURLErrorNetworkUnavailableReason
extends java.lang.Object
Constants used by NSError to indicate that a URLSessionTask failed because of unsatisfiable network constraints.
For example if the URLSessionConfiguration property allowsExpensiveNetworkAccess was set to NO and the only interfaces available were marked as expensive then the task would fail with a NSURLErrorNotConnectedToInternet error and the userInfo dictionary would contain the value NSURLErrorNetworkUnavailableReasonExpensive for the key NSURLErrorNetworkUnavailableReason.
| Modifier and Type | Field and Description |
|---|---|
static long |
Cellular |
static long |
Constrained |
static long |
Expensive |
public static final long Cellular
public static final long Expensive
public static final long Constrained