AbstractAccountAuthenticator.EditProperties 方法

定义

返回一个捆绑包,其中包含可用于编辑属性的活动意向。

[Android.Runtime.Register("editProperties", "(Landroid/accounts/AccountAuthenticatorResponse;Ljava/lang/String;)Landroid/os/Bundle;", "GetEditProperties_Landroid_accounts_AccountAuthenticatorResponse_Ljava_lang_String_Handler")]
public abstract Android.OS.Bundle? EditProperties (Android.Accounts.AccountAuthenticatorResponse? response, string? accountType);
[<Android.Runtime.Register("editProperties", "(Landroid/accounts/AccountAuthenticatorResponse;Ljava/lang/String;)Landroid/os/Bundle;", "GetEditProperties_Landroid_accounts_AccountAuthenticatorResponse_Ljava_lang_String_Handler")>]
abstract member EditProperties : Android.Accounts.AccountAuthenticatorResponse * string -> Android.OS.Bundle

参数

response
AccountAuthenticatorResponse

用于设置请求的结果。 如果在捆绑包中设置了Constants.INTENT_KEY,则在启动意向时,此响应字段将用于发送将来的结果。

accountType
String

要编辑其属性的 AccountType。

返回

包含结果的捆绑包或要开始继续请求的意向。 如果为 null,则将请求视为仍然处于活动状态,并且应稍后使用响应发送结果。

属性

注解

返回一个捆绑包,其中包含可用于编辑属性的活动意向。 为了指示活动是否成功,活动应调用具有非 null 捆绑包的 response.setResult()。

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

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

适用于