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 |
|
| Constants | |
|---|---|
| static Int |
Flag used to request to wait for a delayed fill from the remote Autofill service if it's passed to |
| static Int |
Flag used to change the behavior of |
| static Int |
Flag used to generate |
| Inherited constants | |
|---|---|
| Public methods | |
|---|---|
| Int |
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| String |
toString()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
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: 4FLAG_DISABLE_ACTIVITY_ONLY
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: 2FLAG_TRACK_CONTEXT_COMMITED
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: 1Public methods
describeContents
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
fun toString(): String
Returns a string representation of the object.
| Return | |
|---|---|
String |
a string representation of the object. |
writeToParcel
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:
|