APICategoryReachabilityBehavior

public protocol APICategoryReachabilityBehavior

API Reachability Behavior

  • Attempts to create and start a reachability client for a host that corresponds to the apiName, and then returns the associated Publisher which vends ReachabiltyUpdates

    Declaration

    Swift

    func reachabilityPublisher(for apiName: String?) throws -> AnyPublisher<ReachabilityUpdate, Never>?

    Parameters

    for

    The corresponding apiName that maps to the plugin configuration

    Return Value

    A publisher that receives reachability updates, or nil if the reachability subsystem is unavailable

  • Attempts to create and start a reachability client for a host that corresponds to the apiName, and then returns the associated Publisher which vends ReachabiltyUpdates

    Declaration

    Swift

    func reachabilityPublisher() throws -> AnyPublisher<ReachabilityUpdate, Never>?