ConnectionMonitor

public final class ConnectionMonitor

Undocumented

Properties

  • Undocumented

    Declaration

    Swift

    public static let `default`: ConnectionMonitor
  • Undocumented

    Declaration

    Swift

    public static let connectionBecameSatisfiedNotification: Notification.Name
  • Undocumented

    Declaration

    Swift

    public static let connectionBecameUnsatisfiedNotification: Notification.Name
  • Undocumented

    Declaration

    Swift

    public static let connectionRequiresConnectionNoticication: Notification.Name
  • Undocumented

    Declaration

    Swift

    public static let updatedPathKey: String
  • Undocumented

    Declaration

    Swift

    public var pathUpdateHandler: ((NWPath) -> Void)?
  • Undocumented

    Declaration

    Swift

    public private(set) var isMonitoring: Bool { get }
  • Undocumented

    Declaration

    Swift

    public var currentPath: NWPath? { get }

Init

  • Undocumented

    Declaration

    Swift

    public init(requiredInterfaceType: NWInterface.InterfaceType)
  • Undocumented

    Declaration

    Swift

    public init()

Notifications

  • Undocumented

    Declaration

    Swift

    public func startMonitoring(on queue: DispatchQueue = .init(label: "com.henrikpanhans.ConnectionMonitor", qos: .background))
  • Undocumented

    Declaration

    Swift

    public func stopMonitoring()