AccountManager.SetPassword(Account, String) Method

Definition

Sets or forgets a saved password.

[Android.Runtime.Register("setPassword", "(Landroid/accounts/Account;Ljava/lang/String;)V", "GetSetPassword_Landroid_accounts_Account_Ljava_lang_String_Handler")]
[Android.Runtime.RequiresPermission("android.permission.AUTHENTICATE_ACCOUNTS")]
public virtual void SetPassword (Android.Accounts.Account? account, string? password);
[<Android.Runtime.Register("setPassword", "(Landroid/accounts/Account;Ljava/lang/String;)V", "GetSetPassword_Landroid_accounts_Account_Ljava_lang_String_Handler")>]
[<Android.Runtime.RequiresPermission("android.permission.AUTHENTICATE_ACCOUNTS")>]
abstract member SetPassword : Android.Accounts.Account * string -> unit
override this.SetPassword : Android.Accounts.Account * string -> unit

Parameters

account
Account

The account whose password is to be set. Cannot be null.

password
String

The password to set, null to clear the password

Attributes

Remarks

Java documentation for android.accounts.AccountManager.setPassword(android.accounts.Account, java.lang.String).

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.

Applies to