AccountManager.SetAuthToken(Account, String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds an auth token to the AccountManager cache for an account.
[Android.Runtime.Register("setAuthToken", "(Landroid/accounts/Account;Ljava/lang/String;Ljava/lang/String;)V", "GetSetAuthToken_Landroid_accounts_Account_Ljava_lang_String_Ljava_lang_String_Handler")]
[Android.Runtime.RequiresPermission("android.permission.AUTHENTICATE_ACCOUNTS")]
public virtual void SetAuthToken (Android.Accounts.Account? account, string? authTokenType, string? authToken);
[<Android.Runtime.Register("setAuthToken", "(Landroid/accounts/Account;Ljava/lang/String;Ljava/lang/String;)V", "GetSetAuthToken_Landroid_accounts_Account_Ljava_lang_String_Ljava_lang_String_Handler")>]
[<Android.Runtime.RequiresPermission("android.permission.AUTHENTICATE_ACCOUNTS")>]
abstract member SetAuthToken : Android.Accounts.Account * string * string -> unit
override this.SetAuthToken : Android.Accounts.Account * string * string -> unit
Parameters
- account
- Account
The account to set an auth token for
- authTokenType
- String
The type of the auth token, see {#getAuthToken}
- authToken
- String
The auth token to add to the cache
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.