Added in API level 26

FillResponse


class FillResponse : Parcelable
kotlin.Any
   ↳ android.service.autofill.FillResponse

Response for an android.service.autofill.AutofillService#onFillRequest(android.service.autofill.FillRequest,android.os.CancellationSignal,android.service.autofill.FillCallback).

See the main AutofillService documentation for more details and examples.

Summary

Nested classes

Builder for FillResponse objects.

Constants
static Int

Flag used to request to wait for a delayed fill from the remote Autofill service if it's passed to Builder#setFlags(int).

static Int

Flag used to change the behavior of FillResponse.Builder#disableAutofill(long)— when this flag is passed to Builder#setFlags(int), autofill is disabled only for the activiy that generated the FillRequest, not the whole app.

static Int

Flag used to generate events of type FillEventHistory.Event#TYPE_CONTEXT_COMMITTED—if this flag is not passed to Builder#setFlags(int), these events are not generated.

Inherited constants
Public methods
Int

String

Unit
writeToParcel(parcel: Parcel, flags: Int)

Properties
static Parcelable.Creator<FillResponse!>

Constants

FLAG_DELAY_FILL

Added in API level 33
static val FLAG_DELAY_FILL: Int

Flag used to request to wait for a delayed fill from the remote Autofill service if it's passed to Builder#setFlags(int).

Some datasets (i.e. OTP) take time to produce. This flags allows remote service to send a FillResponse to the latest FillRequest via FillRequest#getDelayedFillIntentSender() even if the original FillCallback has timed out.

Value: 4

FLAG_DISABLE_ACTIVITY_ONLY

Added in API level 28
static val FLAG_DISABLE_ACTIVITY_ONLY: Int

Flag used to change the behavior of FillResponse.Builder#disableAutofill(long)— when this flag is passed to Builder#setFlags(int), autofill is disabled only for the activiy that generated the FillRequest, not the whole app.

Value: 2

FLAG_TRACK_CONTEXT_COMMITED

Added in API level 28
static val FLAG_TRACK_CONTEXT_COMMITED: Int

Flag used to generate events of type FillEventHistory.Event#TYPE_CONTEXT_COMMITTED—if this flag is not passed to Builder#setFlags(int), these events are not generated.

Value: 1

Public methods

describeContents

Added in API level 26
fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

toString

Added in API level 26
fun toString(): String
Return
String a string representation of the object.

writeToParcel

Added in API level 26
fun writeToParcel(
    parcel: Parcel,
    flags: Int
): Unit
Parameters
dest The Parcel in which the object should be written. This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

Added in API level 26
static val CREATOR: Parcelable.Creator<FillResponse!>