Gamebase SDK for Unity 2.69.0
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
callbackCallbacks 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));
}
});
}
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