Share via


AccountManager.IsCredentialsUpdateSuggested Method

Definition

Checks whether #updateCredentials or #startUpdateCredentialsSession should be called with respect to the specified account.

[Android.Runtime.Register("isCredentialsUpdateSuggested", "(Landroid/accounts/Account;Ljava/lang/String;Landroid/accounts/AccountManagerCallback;Landroid/os/Handler;)Landroid/accounts/AccountManagerFuture;", "GetIsCredentialsUpdateSuggested_Landroid_accounts_Account_Ljava_lang_String_Landroid_accounts_AccountManagerCallback_Landroid_os_Handler_Handler", ApiSince=26)]
public virtual Android.Accounts.IAccountManagerFuture? IsCredentialsUpdateSuggested (Android.Accounts.Account? account, string? statusToken, Android.Accounts.IAccountManagerCallback? callback, Android.OS.Handler? handler);
[<Android.Runtime.Register("isCredentialsUpdateSuggested", "(Landroid/accounts/Account;Ljava/lang/String;Landroid/accounts/AccountManagerCallback;Landroid/os/Handler;)Landroid/accounts/AccountManagerFuture;", "GetIsCredentialsUpdateSuggested_Landroid_accounts_Account_Ljava_lang_String_Landroid_accounts_AccountManagerCallback_Landroid_os_Handler_Handler", ApiSince=26)>]
abstract member IsCredentialsUpdateSuggested : Android.Accounts.Account * string * Android.Accounts.IAccountManagerCallback * Android.OS.Handler -> Android.Accounts.IAccountManagerFuture
override this.IsCredentialsUpdateSuggested : Android.Accounts.Account * string * Android.Accounts.IAccountManagerCallback * Android.OS.Handler -> Android.Accounts.IAccountManagerFuture

Parameters

account
Account

The Account to be checked whether #updateCredentials or #startUpdateCredentialsSession should be called

statusToken
String

a String of token to check account staus

callback
IAccountManagerCallback

Callback to invoke when the request completes, null for no callback

handler
Handler

Handler identifying the callback thread, null for the main thread

Returns

An AccountManagerFuture which resolves to a Boolean, true if the credentials of the account should be updated.

Attributes

Remarks

Checks whether #updateCredentials or #startUpdateCredentialsSession should be called with respect to the specified account.

This method may be called from any thread, but the returned AccountManagerFuture must not be used on the main thread.

Java documentation for android.accounts.AccountManager.isCredentialsUpdateSuggested(android.accounts.Account, java.lang.String, android.accounts.AccountManagerCallback<java.lang.Boolean>, android.os.Handler).

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