FillEventHistory.Event.ManuallyEnteredField プロパティ

定義

サービスによって提供されるデータセットで使用できたが、ユーザーが手動で入力したフィールドを返します。

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 をキーとする map map。値は、その値を持ち、ユーザーが選択しなかったデータセットの 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のイベントにのみ設定されます。

の Java ドキュメント android.service.autofill.FillEventHistory.Event.getManuallyEnteredField()

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象