Class NetworkStatus +
+A Network status system to pair with the OnlineClient.
+Inheritance
+Namespace: Supabase.Gotrue
+Assembly: Supabase.Gotrue.dll
+Syntax
+public class NetworkStatus : object
+ Constructors +
+ + | + Improve this Doc + + + View Source + + +NetworkStatus(Client)
+Set up a listener for the network status.
+Declaration
+public NetworkStatus(Client client)
+ Parameters
+Type | +Name | +Description | +
---|---|---|
Client | +client | ++ |
Methods +
+ + | + Improve this Doc + + + View Source + + +PingCheck()
+Pings the URL in the Options to check if the network is online.
+Declaration
+public Task PingCheck()
+ Returns
+Type | +Description | +
---|---|
Task | ++ |
StartAsync()
+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.
+Declaration
+public Task StartAsync()
+ Returns
+Type | +Description | +
---|---|
Task | ++ |