AbstractAccountAuthenticator.IsCredentialsUpdateSuggested 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
检查是否建议更新帐户凭据。
[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 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。