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
|
List<String>
|
getDatasetIds()
Gets the ids of the datasets selected by the user, in the order in which they were selected. |
List<FillContext>
|
getFillContexts()
Gets the contexts associated with each previous fill request. |
void
|
writeToParcel(Parcel parcel, int flags)
Flatten this object in to a Parcel. |
Inherited methods | |
---|---|
Fields
Public methods
describeContents
public 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(android.os.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.
Value is either 0 or CONTENTS_FILE_DESCRIPTOR |
getClientState
public Bundle getClientState ()
Gets the latest client state bundle set by the service in a
fill response
.
Note: Prior to Android Build.VERSION_CODES.P
, only client state
bundles set by FillResponse.Builder#setClientState(Bundle)
were considered. On
Android Build.VERSION_CODES.P
and higher, bundles set in the result of
an authenticated request through the
AutofillManager.EXTRA_CLIENT_STATE
extra are
also considered (and take precedence when set).
Returns | |
---|---|
Bundle |
The client state.
This value may be null . |
getDatasetIds
public 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
public List<FillContext> getFillContexts ()
Gets the contexts associated with each previous fill request.
Note: Starting on Android Build.VERSION_CODES.Q
, it could also
include contexts from requests whose SaveInfo
had the
SaveInfo#FLAG_DELAY_SAVE
flag.
Returns | |
---|---|
List<FillContext> |
The contexts associated with each previous fill request.
This value cannot be null . |
writeToParcel
public 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.
This value cannot be null . |
flags |
int : Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE .
Value is either 0 or a combination of Parcelable.PARCELABLE_WRITE_RETURN_VALUE , and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |