Gamebase SDK for Unity 2.74.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));
});
}
Toast.Gamebase.Gamebase.Network.IsConnected
static bool IsConnected()
Indicates whether network connectivity exists and it is possible to establish connections and pass da...
Definition: Gamebase.cs:3142
Toast.Gamebase.Gamebase.Network
The Network class indicates Network status.
Definition: Gamebase.cs:3081
Toast.Gamebase.Gamebase
The Gamebase class is core of Gamebase service.
Definition: Gamebase.cs:11