-
Notifications
You must be signed in to change notification settings - Fork 966
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2828 from playgameservices/incremental-authorization
Incremental authorization
- Loading branch information
Showing
11 changed files
with
412 additions
and
3 deletions.
There are no files selected for viewing
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 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 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
42 changes: 42 additions & 0 deletions
42
source/PluginDev/Assets/GooglePlayGames/BasicApi/SignInStatus.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
namespace GooglePlayGames.BasicApi | ||
{ | ||
public enum SignInStatus | ||
{ | ||
/// <summary>The operation was successful.</summary> | ||
Success, | ||
|
||
/// <summary> | ||
/// The client attempted to connect to the service but the user is not signed in. The client may | ||
/// choose to continue without using the API. Alternately, if {@link Status#hasResolution} returns | ||
/// {@literal true} the client may call {@link Status#startResolutionForResult(Activity, int)} to | ||
/// prompt the user to sign in. After the sign in activity returns with {@link Activity#RESULT_OK} | ||
/// further attempts should succeed. | ||
/// </summary> | ||
UiSignInRequired, | ||
|
||
/// <summary>A network error occurred. Retrying should resolve the problem.</summary> | ||
NetworkError, | ||
|
||
/// <summary>An internal error occurred.</summary> | ||
InternalError, | ||
|
||
/// <summary>The sign in was canceled.</summary> | ||
Canceled, | ||
|
||
/// <summary> | ||
/// A sign in process is currently in progress and the current one cannot continue. e.g. the user | ||
/// clicks the SignInButton multiple times and more than one sign in intent was launched. | ||
/// </summary> | ||
AlreadyInProgress, | ||
|
||
/// <summary> | ||
/// Failure reason is unknown. Check adb log to see details if any. | ||
/// </summary> | ||
Failed, | ||
|
||
/// <summary> | ||
/// Currently not authenticated. Silent or interactive sign in is required. | ||
/// </summary> | ||
NotAuthenticated, | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
source/PluginDev/Assets/GooglePlayGames/BasicApi/SignInStatus.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 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 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 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
Oops, something went wrong.