Reachability
public class Reachability
Undocumented
-
Undocumented
Declaration
Swift
public typealias NetworkReachable = (Reachability) -> ()
-
Undocumented
Declaration
Swift
public typealias NetworkUnreachable = (Reachability) -> ()
-
Undocumented
See moreDeclaration
Swift
public enum Connection : CustomStringConvertible
-
Undocumented
Declaration
Swift
public var whenReachable: NetworkReachable?
-
Undocumented
Declaration
Swift
public var whenUnreachable: NetworkUnreachable?
-
Undocumented
Declaration
Swift
public let reachableOnWWAN: Bool
-
Set to
false
to force Reachability.connection to .none when on cellular connection (default valuetrue
)Declaration
Swift
public var allowsCellularConnection: Bool
-
Undocumented
Declaration
Swift
public var notificationCenter: NotificationCenter
-
Undocumented
Declaration
Swift
public var currentReachabilityString: String { get }
-
Undocumented
Declaration
Swift
public var connection: Connection { get }
-
Undocumented
Declaration
Swift
required public init(reachabilityRef: SCNetworkReachability, queueQoS: DispatchQoS = .default, targetQueue: DispatchQueue? = nil, notificationQueue: DispatchQueue? = .main)
-
Undocumented
Declaration
Swift
public convenience init(hostname: String, queueQoS: DispatchQoS = .default, targetQueue: DispatchQueue? = nil, notificationQueue: DispatchQueue? = .main) throws
-
Undocumented
Declaration
Swift
public convenience init(queueQoS: DispatchQoS = .default, targetQueue: DispatchQueue? = nil, notificationQueue: DispatchQueue? = .main) throws
-
Undocumented
Declaration
Swift
func startNotifier() throws
-
Undocumented
Declaration
Swift
func stopNotifier()
-
Undocumented
Declaration
Swift
var isReachable: Bool { get }
-
Undocumented
Declaration
Swift
var isReachableViaWWAN: Bool { get }
-
Undocumented
Declaration
Swift
var isReachableViaWiFi: Bool { get }
-
Undocumented
Declaration
Swift
var description: String { get }