Skip to content

Instantly share code, notes, and snippets.

@jinmanpak
Last active February 12, 2021 00:26
Show Gist options
  • Save jinmanpak/41c89d402b081dcc86c64ca9fa24a580 to your computer and use it in GitHub Desktop.
Save jinmanpak/41c89d402b081dcc86c64ca9fa24a580 to your computer and use it in GitHub Desktop.
GPGS Android Logout 처리
// This method will be called when user logout the google play servcie
public void SignOut(Action uiCallback)
{
if (mTokenClient == null)
{
InvokeCallbackOnGameThread(uiCallback);
return;
}
mTokenClient.Signout();
mAuthState = AuthState.Unauthenticated;
if (uiCallback != null)
{
InvokeCallbackOnGameThread(uiCallback);
}
PlayGamesHelperObject.RunOnGameThread(() =>
{
/* Save user logout action. */
SignInHelper.SetPromptUiSignIn(true);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment