Class NetworkStatus
A Network status system to pair with the OnlineClient.
public class NetworkStatus
- Inheritance
-
NetworkStatus
- Inherited Members
- Extension Methods
Fields
Ready
True if the network has been checked.
public bool Ready
Field Value
Properties
Client
The Client that this network status system is attached to.
public IGotrueClient<User, Session>? Client { get; set; }
Property Value
Methods
AddListener(NetworkListener)
Adds a listener to the network status system.
public void AddListener(NetworkStatus.NetworkListener listener)
Parameters
listenerNetworkStatus.NetworkListener
~NetworkStatus()
Removes the network status system checker from the OS.
protected ~NetworkStatus()
PingCheck(string)
Pings the URL in the Options to check if the network is online.
public Task<bool> PingCheck(string url)
Parameters
urlstring
Returns
RemoveListener(NetworkListener)
Removes a listener from the network status system.
public void RemoveListener(NetworkStatus.NetworkListener listener)
Parameters
listenerNetworkStatus.NetworkListener
StartAsync(string)
Starts the network status system. This will listen to the OS for network changes, and also does a ping check to confirm the current network status.
public Task<bool> StartAsync(string url)
Parameters
urlstring