Added in API level 26

FillResponse


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

Response for an AutofillService.onFillRequest(FillRequest, android.os.CancellationSignal, 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

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

String

Returns a string representation of the object.

Unit
writeToParcel(parcel: Parcel, flags: Int)

Flatten this object in to a Parcel.

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

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(android.os.Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.

Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance.
Value is either 0 or

toString

Added in API level 26
fun toString(): String

Returns a string representation of the object.

Return
String a string representation of the object.

writeToParcel

Added in API level 26
fun writeToParcel(
    parcel: Parcel,
    flags: Int
): Unit

Flatten this object in to a Parcel.

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 the following:

Properties

CREATOR

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