Class NWPath

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

public final class NWPath
extends NWObject
implements NSObjectProtocol
  • Constructor Details

    • NWPath

      public NWPath()
  • Method Details

    • getStatus

      public NWPathStatus getStatus()
      Since:
      Available in iOS 12.0 and later.
    • getUnsatisfiedReason

      public NWPathUnsatisfiedReason getUnsatisfiedReason()
      Since:
      Available in iOS 14.2 and later.
    • enumerateInterfaces

      public void enumerateInterfaces​(Block1<NWInterface,​Boolean> enumerate_block)
      Since:
      Available in iOS 12.0 and later.
    • isEqual

      public boolean isEqual​(NWPath other_path)
      Since:
      Available in iOS 12.0 and later.
    • isExpensive

      public boolean isExpensive()
      Since:
      Available in iOS 12.0 and later.
    • isConstrained

      public boolean isConstrained()
      Since:
      Available in iOS 13.0 and later.
    • hasIpv4

      public boolean hasIpv4()
      Since:
      Available in iOS 12.0 and later.
    • hasIpv6

      public boolean hasIpv6()
      Since:
      Available in iOS 12.0 and later.
    • hasDns

      public boolean hasDns()
      Since:
      Available in iOS 12.0 and later.
    • usesInterfaceType

      public boolean usesInterfaceType​(NWInterfaceType interface_type)
      Since:
      Available in iOS 12.0 and later.
    • copyEffectiveLocalEndpoint

      public NWEndpoint copyEffectiveLocalEndpoint()
      Since:
      Available in iOS 12.0 and later.
    • copyEffectiveRemoteEndpoint

      public NWEndpoint copyEffectiveRemoteEndpoint()
      Since:
      Available in iOS 12.0 and later.
    • enumerateGateways

      public void enumerateGateways​(Block1<NWEndpoint,​Boolean> enumerate_block)
      Since:
      Available in iOS 13.0 and later.