Gamebase SDK for Unity 2.75.1 Toast Gamebase Platform

Loading...
Searching...
No Matches

## ◆ Logout()

static void Logout | ( | GamebaseCallback::ErrorDelegate | callback | ) |
| static

Try to log out from logged-in IdP.

In many cases, the logout button is located on the game configuration screen. Even if a logout is successful, a game user's data remain. When it is successful, as authentication records with a corresponding IdP are removed, ID and passwords will be required for the next log-in process.

Since
  Added 1.4.0.

Parameters

  callback | Callbacks the result of logout.(GamebaseError error)

Example Usage :

public void LogoutSample()
{
Gamebase.Logout((error) =>
{
if (Gamebase.IsSuccess(error) == true)
{
Debug.Log("Logout succeeded.");
}
else
{
// Check the error code and handle the error appropriately.
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