Class NSURLErrorNetworkUnavailableReason


  • public final class NSURLErrorNetworkUnavailableReason
    extends java.lang.Object
    [@enum] Codes associated with NSURLErrorNetworkUnavailableReasonKey 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.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait