SaveRequest
class SaveRequest : Parcelable
kotlin.Any | |
↳ | android.service.autofill.SaveRequest |
This class represents a request to an autofill provider
to save applicable data entered by the user.
Summary
Inherited constants | |
---|---|
Public methods | |
---|---|
Int | |
Bundle? |
Gets the latest client state bundle set by the service in a |
MutableList<String!>? |
Gets the ids of the datasets selected by the user, in the order in which they were selected. |
MutableList<FillContext!> |
Gets the contexts associated with each previous fill request. |
Unit |
writeToParcel(parcel: Parcel, flags: Int) |
Properties | |
---|---|
static Parcelable.Creator<SaveRequest!> |
Public methods
describeContents
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 |
getClientState
fun getClientState(): Bundle?
Gets the latest client state bundle set by the service in a fill response
.
Note: Prior to Android android.os.Build.VERSION_CODES#P
, only client state bundles set by FillResponse.Builder#setClientState(Bundle)
were considered. On Android android.os.Build.VERSION_CODES#P
and higher, bundles set in the result of an authenticated request through the android.view.autofill.AutofillManager#EXTRA_CLIENT_STATE
extra are also considered (and take precedence when set).
Return | |
---|---|
Bundle? |
The client state. This value may be null . |
getDatasetIds
fun getDatasetIds(): MutableList<String!>?
Gets the ids of the datasets selected by the user, in the order in which they were selected.
Return | |
---|---|
MutableList<String!>? |
This value may be null . |
getFillContexts
fun getFillContexts(): MutableList<FillContext!>
Gets the contexts associated with each previous fill request.
Note: Starting on Android android.os.Build.VERSION_CODES#Q
, it could also include contexts from requests whose SaveInfo
had the SaveInfo#FLAG_DELAY_SAVE
flag.
Return | |
---|---|
MutableList<FillContext!> |
The contexts associated with each previous fill request. This value cannot be null . |
writeToParcel
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 |