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 moreDeclaration
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
ConnectionTypeof the current connection, ornilwhen not connected.Declaration
Swift
public var type: ConnectionType? { get } -
Whether the device currently has an available connection.
Declaration
Swift
public var isConnected: Bool { get }
View on GitHub