Reachability

open class Reachability

Adds Reachability supportt

Initializers

  • Reachability initializer.

    Declaration

    Swift

    public init(hostname: String? = nil)

    Parameters

    hostname

    The name of the desired host.

Public methods

  • 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()