Gamebase SDK for Unity 2.69.0
Toast Gamebase Platform
Loading...
Searching...
No Matches

◆ IsConnected() [2/2]

static void IsConnected ( GamebaseCallback::DataDelegate< bool > callback)
static

Indicates whether network connectivity exists and it is possible to establish connections and pass data.

(Only WebGL platform)

Since
Added 1.4.0.
Parameters
callback"true" if network connectivity exists, "false" otherwise.

Example Usage :

public void IsConnectedSample()
{
Gamebase.Network.IsConnected((reachable) =>
{
Debug.Log(string.Format("Internet reachability is {0}", reachable));
});
}
static bool IsConnected()
Indicates whether network connectivity exists and it is possible to establish connections and pass da...
Definition Gamebase.cs:3092
The Network class indicates Network status.
Definition Gamebase.cs:3031
The Gamebase class is core of Gamebase service.
Definition Gamebase.cs:11