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

◆ IsSuccess()

static bool IsSuccess ( GamebaseError error)
static

Return true if the GamebaseException object is null or the error code is zero.

Since
Added 1.4.0.
Parameters
errorThe exception that occurred.
Returns
True if success, false if not.

Example Usage :

public void IsSuccessSample()
{
Gamebase.Logout((error) =>
{
if (Gamebase.IsSuccess(error) == true)
{
Debug.Log("Logout succeeded.");
}
else
{
Debug.Log(string.Format("Logout failed. error is {0}", error));
}
});
}
static void Logout(GamebaseCallback.ErrorDelegate callback)
Try to log out from logged-in IdP.
Definition Gamebase.cs:961
static bool IsSuccess(GamebaseError error)
Return true if the GamebaseException object is null or the error code is zero.
Definition Gamebase.cs:57
The Gamebase class is core of Gamebase service.
Definition Gamebase.cs:11