AbstractAccountAuthenticator.IsCredentialsUpdateSuggested 方法

定义

检查是否建议更新帐户凭据。

[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

参数

response
AccountAuthenticatorResponse

若要将结果发送回 AccountManager,则永远不会为 null。

account
Account

要检查的帐户,永远不会为 null

statusToken
String

令牌字符串,可用于检查本地存储凭据的状态以及是否建议更新凭据

返回

如果通过响应返回结果,则为捆绑结果或 null。 结果将包含以下任一项:<ul><li>AccountManager#KEY_BOOLEAN_RESULT,如果建议更新帐户凭据,则为 true;否则<为 liAccountManager#KEY_ERROR_CODE> 并AccountManager#KEY_ERROR_MESSAGE指示错误 </ul>

属性

注解

检查是否建议更新帐户凭据。

适用于 . 的 android.accounts.AbstractAccountAuthenticator.isCredentialsUpdateSuggested(android.accounts.AccountAuthenticatorResponse, android.accounts.Account, java.lang.String)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于