SaveRequest

public final class SaveRequest
extends Object implements Parcelable

java.lang.Object
   ↳ android.service.autofill.SaveRequest


This class represents a request to an autofill provider to save applicable data entered by the user.

Summary

Inherited constants

Fields

public static final Creator<SaveRequest> CREATOR

Public methods

int describeContents()

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

Bundle getClientState()

Gets the latest client state bundle set by the service in a fill response.

List<String> getDatasetIds()

Gets the ids of the datasets selected by the user, in the order in which they were selected.

List<FillContext> getFillContexts()
void writeToParcel(Parcel parcel, int flags)

Flatten this object in to a Parcel.

Inherited methods

Fields

CREATOR

added in API level 26
Creator<SaveRequest> CREATOR

Public methods

describeContents

added in API level 26
int describeContents ()

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(Parcel, int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.

Returns
int a bitmask indicating the set of special object types marshaled by this Parcelable object instance.

getClientState

added in API level 26
Bundle getClientState ()

Gets the latest client state bundle set by the service in a fill response.

Note: Prior to Android P, only client state bundles set by setClientState(Bundle) were considered. On Android P and higher, bundles set in the result of an authenticated request through the EXTRA_CLIENT_STATE extra are also considered (and take precedence when set).

Returns
Bundle The client state.

This value may be null.

getDatasetIds

List<String> getDatasetIds ()

Gets the ids of the datasets selected by the user, in the order in which they were selected.

Returns
List<String>

This value may be null.

getFillContexts

added in API level 26
List<FillContext> getFillContexts ()

Returns
List<FillContext> The contexts associated with each previous fill request.

This value will never be null.

writeToParcel

added in API level 26
void writeToParcel (Parcel parcel, 
                int flags)

Flatten this object in to a Parcel.

Parameters
parcel Parcel: The Parcel in which the object should be written.

flags int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE.