Share via


AbstractAccountAuthenticator.IsCredentialsUpdateSuggested Method

Definition

Checks if update of the account credentials is suggested.

[Android.Runtime.Register("isCredentialsUpdateSuggested", "(Landroid/accounts/AccountAuthenticatorResponse;Landroid/accounts/Account;Ljava/lang/String;)Landroid/os/Bundle;", "GetIsCredentialsUpdateSuggested_Landroid_accounts_AccountAuthenticatorResponse_Landroid_accounts_Account_Ljava_lang_String_Handler", ApiSince=26)]
public virtual Android.OS.Bundle? IsCredentialsUpdateSuggested (Android.Accounts.AccountAuthenticatorResponse? response, Android.Accounts.Account? account, string? statusToken);
[<Android.Runtime.Register("isCredentialsUpdateSuggested", "(Landroid/accounts/AccountAuthenticatorResponse;Landroid/accounts/Account;Ljava/lang/String;)Landroid/os/Bundle;", "GetIsCredentialsUpdateSuggested_Landroid_accounts_AccountAuthenticatorResponse_Landroid_accounts_Account_Ljava_lang_String_Handler", ApiSince=26)>]
abstract member IsCredentialsUpdateSuggested : Android.Accounts.AccountAuthenticatorResponse * Android.Accounts.Account * string -> Android.OS.Bundle
override this.IsCredentialsUpdateSuggested : Android.Accounts.AccountAuthenticatorResponse * Android.Accounts.Account * string -> Android.OS.Bundle

Parameters

response
AccountAuthenticatorResponse

to send the result back to the AccountManager, will never be null.

account
Account

the account to check, will never be null

statusToken
String

a String of token which can be used to check the status of locally stored credentials and if update of credentials is suggested

Returns

a Bundle result or null if the result is to be returned via the response. The result will contain either: <ul> <li>AccountManager#KEY_BOOLEAN_RESULT, true if update of account's credentials is suggested, false otherwise <li>AccountManager#KEY_ERROR_CODE and AccountManager#KEY_ERROR_MESSAGE to indicate an error </ul>

Attributes

Remarks

Checks if update of the account credentials is suggested.

Java documentation for android.accounts.AbstractAccountAuthenticator.isCredentialsUpdateSuggested(android.accounts.AccountAuthenticatorResponse, 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