Stay organized with collections
Save and categorize content based on your preferences.
GooglePlayGames.BasicApi.AuthScopeExtensions
Extensions for the AuthScope enum.
Summary
These extensions are used to converting between the AuthScope enum and its string representation.
Public static functions
|
FromValue(string value)
|
Returns the AuthScope enum value corresponding to the provided string.
|
GetValue(this AuthScope authScope)
|
string
Returns the standard string representation of this OAuth 2.0 scope.
|
Public static functions
FromValue
AuthScope FromValue(
string value
)
Returns the AuthScope enum value corresponding to the provided string.
Details |
Parameters |
value
|
The string value used to represent the scope.
|
|
Exceptions |
ArgumentException
|
If the provided string is not a valid AuthScope.
|
|
Returns
|
The AuthScope enum value corresponding to the provided string.
|
GetValue
string GetValue(
this AuthScope authScope
)
Returns the standard string representation of this OAuth 2.0 scope.
Details |
Parameters |
authScope
|
The AuthScope enum value.
|
|
Exceptions |
ArgumentException
|
If the provided AuthScope is not valid.
|
|
Returns
|
The string value used to represent this scope.
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-07-08 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-08 UTC."],[],[],null,["# GooglePlayGames.BasicApi.AuthScopeExtensions Class Reference\n\nGooglePlayGames.BasicApi.AuthScopeExtensions\n============================================\n\nExtensions for the AuthScope enum.\n\nSummary\n-------\n\nThese extensions are used to converting between the AuthScope enum and its string representation.\n\n| ### Public static functions ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [FromValue](#class_google_play_games_1_1_basic_api_1_1_auth_scope_extensions_1a839f18d9a6eca8c850daaa62dae84e11)`(string value)` | [AuthScope](/games/services/unity/v2/api/namespace/google-play-games/basic-api#namespace_google_play_games_1_1_basic_api_1ab5415b6b4ad0724108f447b203380e44) Returns the AuthScope enum value corresponding to the provided string. |\n| [GetValue](#class_google_play_games_1_1_basic_api_1_1_auth_scope_extensions_1accc57cce519a20b8923eb2abd8a3ef58)`(this `[AuthScope](/games/services/unity/v2/api/namespace/google-play-games/basic-api#namespace_google_play_games_1_1_basic_api_1ab5415b6b4ad0724108f447b203380e44)` authScope)` | `string` Returns the standard string representation of this OAuth 2.0 scope. |\n\nPublic static functions\n-----------------------\n\n### FromValue\n\n```c#\nAuthScope FromValue(\n string value\n)\n``` \nReturns the AuthScope enum value corresponding to the provided string.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |---------|-----------------------------------------------| | `value` | The string value used to represent the scope. | |\n| Exceptions | |---------------------|--------------------------------------------------| | `ArgumentException` | If the provided string is not a valid AuthScope. | |\n| **Returns** | The AuthScope enum value corresponding to the provided string. |\n\n### GetValue\n\n```c#\nstring GetValue(\n this AuthScope authScope\n)\n``` \nReturns the standard string representation of this OAuth 2.0 scope.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|-------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |-------------|---------------------------| | `authScope` | The AuthScope enum value. | |\n| Exceptions | |---------------------|-----------------------------------------| | `ArgumentException` | If the provided AuthScope is not valid. | |\n| **Returns** | The string value used to represent this scope. |"]]