PlatformReachability
Interacts directly with the platform's reachability API to monitor network status.
This class provides functionality for checking network reachability, getting the current network status, and adding or removing listeners for network status changes. It uses the provided ReachabilityInterface to interface with the platform's reachability API.
Parameters
reachability
The interface responsible for checking network reachability and notifying about network status changes.
Functions
Link copied to clipboard
Adds a listener to monitor changes in the network status.
Link copied to clipboard
Returns the current network status based on the platform's reachability API.
Link copied to clipboard
Checks if the platform is reachable (i.e., if it is connected to a network).
Link copied to clipboard
Removes a listener from monitoring network status changes.