ReachabilityStatus
public struct ReachabilityStatus: OptionSet, CustomStringConvertible
OptionSet indicating endpoint connectivity statuses
-
Declaration
Swift
public var rawValue: Int
-
Declaration
Swift
public init(rawValue: Int)
-
The device is offline, and does not have internet connectivity
Declaration
Swift
public static let offline = ReachabilityStatus(rawValue: 0)
-
The device is online and can contact the configured authorization URL
Declaration
Swift
public static let online = ReachabilityStatus(rawValue: 1<<0)
-
The device has a WiFi connection to the internet
Declaration
Swift
public static let wifi = ReachabilityStatus(rawValue: 1<<1)
-
The device has a cellular connection to the internet
Declaration
Swift
public static let cell = ReachabilityStatus(rawValue: 1<<2)
-
The device is online, and the configured authorization URL has returned a successfully authenticated status
Declaration
Swift
public static let authenticated = ReachabilityStatus(rawValue: 1<<3)
-
The device has an internet connection, but the configured authorization URL cannot be contacted
Declaration
Swift
public static let internet = ReachabilityStatus(rawValue: 1<<4)
-
The app is currently in an offline authenticated state
Declaration
Swift
public static let offlineAuthenticated = ReachabilityStatus(rawValue: 1<<5)
-
Declaration
Swift
public var description: String
-
String array of OptionSet value descriptions
Declaration
Swift
public func valueArray() -> [String]