Share via


AutofillManager.ExtraAuthenticationResultEphemeralDataset Field

Definition

Intent extra: The optional boolean extra field provided by the android.service.autofill.AutofillService accompanying the android.service.autofill.Dataset result of an authentication operation.

[Android.Runtime.Register("EXTRA_AUTHENTICATION_RESULT_EPHEMERAL_DATASET", ApiSince=31)]
public const string ExtraAuthenticationResultEphemeralDataset;
[<Android.Runtime.Register("EXTRA_AUTHENTICATION_RESULT_EPHEMERAL_DATASET", ApiSince=31)>]
val mutable ExtraAuthenticationResultEphemeralDataset : string

Field Value

Attributes

Remarks

Intent extra: The optional boolean extra field provided by the android.service.autofill.AutofillService accompanying the android.service.autofill.Dataset result of an authentication operation.

Before android.os.Build.VERSION_CODES#R, if the authentication result is a android.service.autofill.Dataset, it'll be used to autofill the fields, and also replace the existing dataset in the cached android.service.autofill.FillResponse. That means if the user clears the field values, the autofill suggestion will show up again with the new authenticated Dataset.

In android.os.Build.VERSION_CODES#R, we added an exception to this behavior that if the Dataset being authenticated is a pinned dataset (see android.service.autofill.InlinePresentation#isPinned()), the old Dataset will not be replaced.

In android.os.Build.VERSION_CODES#S, we added this boolean extra field to allow the android.service.autofill.AutofillService to explicitly specify whether the returned authenticated Dataset is ephemeral. An ephemeral Dataset will be used to autofill once and then thrown away. Therefore, when the boolean extra is set to true, the returned Dataset will not replace the old dataset from the existing android.service.autofill.FillResponse. When it's set to false, it will. When it's not set, the old dataset will be replaced, unless it is a pinned inline suggestion, which is consistent with the behavior in android.os.Build.VERSION_CODES#R.

Java documentation for android.view.autofill.AutofillManager.EXTRA_AUTHENTICATION_RESULT_EPHEMERAL_DATASET.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to