-
Declaration
Swift
public var networkReachabilityStatus: NetworkReachabilityStatus { get }
-
Creates a
Reachabilityinstance with the specified host.Declaration
Swift
public convenience init?(host: String)Parameters
hostThe host used to evaluate network reachability.
Return Value
The new
Reachabilityinstance. -
Creates a
Reachabilityinstance that monitors the address 0.0.0.0.ReachabilityManager treats the 0.0.0.0 address as a special token that causes it to monitor the general routing status of the device, both IPv4 and IPv6.
Declaration
Swift
public convenience init?()Return Value
The new
Reachabilityinstance.
-
Declaration
Swift
public func registerListener(_ listener: @escaping ReachabilityStatusListener) -
Declaration
Swift
@discardableResult public func startListening() -> Bool -
Declaration
Swift
public func stopListening()
View on GitHub
ReachabilityManager Class Reference