Gamebase SDK for Unity  1.14.2
Toast Gamebase Platform

◆ 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 Logout()
{
Gamebase.Logout((error) =>
{
if (Gamebase.IsSuccess(error))
{
Debug.Log("Logout succeeded.");
}
else
{
Debug.Log(string.Format("Logout failed. error is {0}", error));
}
});
}