-
Declaration
Swift
public var networkReachabilityStatus: NetworkReachabilityStatus { get }
-
Creates a
Reachability
instance with the specified host.Declaration
Swift
public convenience init?(host: String)
Parameters
host
The host used to evaluate network reachability.
Return Value
The new
Reachability
instance. -
Creates a
Reachability
instance 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
Reachability
instance.
-
Declaration
Swift
public func registerListener(_ listener: @escaping ReachabilityStatusListener)
-
Declaration
Swift
@discardableResult public func startListening() -> Bool
-
Declaration
Swift
public func stopListening()