Gamebase SDK for Unity  2.1.0
Toast Gamebase Platform

◆ 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 IsConnected()
{
Gamebase.Network.IsConnected((reachable) =>
{
Debug.Log(string.Format("Internet reachability is {0}", reachable));
});
}