Gamebase SDK for Unity  1.1.5
Toast Gamebase Platform

◆ AddOnChangedStatusListener()

static bool AddOnChangedStatusListener ( GamebaseCallback.DataDelegate< GamebaseNetworkType >  callback)
static

When network status is changed, this callback is called.

Parameters
callbackCallback to add
Returns
Is success to add.

This sample shows how to call the Gamebase.Network.AddOnChangedStatusListener method.

{
bool isSuccess = Gamebase.Network.AddOnChangedStatusListener(OnChangeNetworkMain);
}
public void OnChangeNetwork(GamebaseNetworkType type)
{
Debug.Log(string.Format("OnChangeNetwork GamebaseNetworkType : {0}", type.ToString()));
}