FillEventHistory.Event.ManuallyEnteredField 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回服务提供的数据集上可用的字段,但由用户手动输入。
public System.Collections.Generic.IDictionary<Android.Views.Autofill.AutofillId,System.Collections.Generic.ICollection<string>> ManuallyEnteredField { [Android.Runtime.Register("getManuallyEnteredField", "()Ljava/util/Map;", "", ApiSince=28)] get; }
[<get: Android.Runtime.Register("getManuallyEnteredField", "()Ljava/util/Map;", "", ApiSince=28)>]
member this.ManuallyEnteredField : System.Collections.Generic.IDictionary<Android.Views.Autofill.AutofillId, System.Collections.Generic.ICollection<string>>
属性值
映射映射,其键是手动输入字段的 ID,值是具有该值但未由用户选择的数据集的 ID。
- 属性
注解
返回服务提供的数据集上可用的字段,但由用户手动输入。
例如,服务器提供:
FillResponse response = new FillResponse.Builder()
.addDataset(new Dataset.Builder(presentation1)
.setId("4815")
.setValue(usernameId, AutofillValue.forText("MrPlow"))
.setValue(passwordId, AutofillValue.forText("AyCaramba"))
.build())
.addDataset(new Dataset.Builder(presentation2)
.setId("162342")
.setValue(usernameId, AutofillValue.forText("ElBarto"))
.setValue(passwordId, AutofillValue.forText("D'OH"))
.build())
.addDataset(new Dataset.Builder(presentation3)
.setId("108")
.setValue(usernameId, AutofillValue.forText("MrPlow"))
.setValue(passwordId, AutofillValue.forText("D'OH"))
.build())
.build();
用户未选择数据集,但手动输入:
username = "MrPlow";
password = "D'OH";
然后,结果是以下映射:
usernameId => { "4815", "108"}
passwordId => { "162342", "108" }
<b>注意: </b>仅对类型的 #TYPE_CONTEXT_COMMITTED
事件进行设置。
适用于 . 的 android.service.autofill.FillEventHistory.Event.getManuallyEnteredField()
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。