Last active
February 12, 2021 00:26
-
-
Save jinmanpak/41c89d402b081dcc86c64ca9fa24a580 to your computer and use it in GitHub Desktop.
GPGS Android Logout 처리
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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