QueryConnectivity

public protocol QueryConnectivity

Protocol for Reachability when determining device connectivity status

  • Callback handler closure type

    Declaration

    Swift

    typealias QueryConnectivityCompletion = (ReachabilityStatus) -> Void
  • Returns true if the user has authenticated offline

    Declaration

    Swift

    var isOfflineAuthenticated: Bool
  • Queries the device, and potentally the server to determine the connectivity state

    Declaration

    Swift

    func queryConnectivity(_ completionHandler: QueryConnectivityCompletion?)
  • Clears the authorization reachability check cache immediately, ensuring the next connectivity query will call the configured authorization URL to validate authentication state.

    If the configuration does not contain an authorization URL, the cache is unused, so clearing it has no effect.

    Declaration

    Swift

    func clearCache()