Reachability
open class Reachability
Adds Reachability supportt
-
Reachability initializer.
Declaration
Swift
public init(hostname: String? = nil)
Parameters
hostname
The name of the desired host.
-
Starts monitoring network state updates.
Declaration
Swift
public func monitorState(_ closure: ReachabilityUpdateClosureType?) throws
Parameters
closure
Type for reachability monitoring updates
-
Stops monitoring network state updates.
Declaration
Swift
open func stopMonitoring()