NetworkConnection

public enum NetworkConnection : Equatable

The connection as it’s reported by the system monitors

  • The type of connection that we have at the moment

    See more

    Declaration

    Swift

    public enum ConnectionType : String, Equatable
  • System reported that connection should be avilable and should use the given ConnectionType

    Declaration

    Swift

    case connected(ConnectionType)
  • System reported that connection should not be possible at the time

    Declaration

    Swift

    case notConnected
  • Always default until the monitored connectivity says otherwise

    Declaration

    Swift

    case unknown
  • The ConnectionType of the current connection, or nil when not connected.

    Declaration

    Swift

    public var type: ConnectionType? { get }
  • Whether the device currently has an available connection.

    Declaration

    Swift

    public var isConnected: Bool { get }