共用方式為


AccountManager.GetPreviousName(Account) Method

Definition

Gets the previous name associated with the account or null, if none.

[Android.Runtime.Register("getPreviousName", "(Landroid/accounts/Account;)Ljava/lang/String;", "GetGetPreviousName_Landroid_accounts_Account_Handler")]
public virtual string? GetPreviousName (Android.Accounts.Account? account);
[<Android.Runtime.Register("getPreviousName", "(Landroid/accounts/Account;)Ljava/lang/String;", "GetGetPreviousName_Landroid_accounts_Account_Handler")>]
abstract member GetPreviousName : Android.Accounts.Account -> string
override this.GetPreviousName : Android.Accounts.Account -> string

Parameters

account
Account

The account to query for a previous name.

Returns

The account's previous name, null if the account has never been renamed.

Attributes

Remarks

Gets the previous name associated with the account or null, if none. This is intended so that clients of OnAccountsUpdateListener can determine if an authenticator has renamed an account.

It is safe to call this method from the main thread.

Java documentation for android.accounts.AccountManager.getPreviousName(android.accounts.Account).

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