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 |
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| 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)Flatten this object in to a Parcel. |
| Properties | |
|---|---|
| static Parcelable.Creator<SaveRequest!> | |
Public 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
|
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
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:
|