Gamebase SDK for Unity 2.74.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

  error | The 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));
}
});
}
Toast.Gamebase.Gamebase.Logout
static void Logout(GamebaseCallback.ErrorDelegate callback)
Try to log out from logged-in IdP.
Definition: Gamebase.cs:990
Toast.Gamebase.Gamebase.IsSuccess
static bool IsSuccess(GamebaseError error)
Return true if the GamebaseException object is null or the error code is zero.
Definition: Gamebase.cs:57
Toast.Gamebase.Gamebase
The Gamebase class is core of Gamebase service.
Definition: Gamebase.cs:11