# FillRequest

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Constants](https://developer.android.com/reference/android/service/autofill/FillRequest#constants)\|[Inherited Constants](https://developer.android.com/reference/android/service/autofill/FillRequest#inhconstants)\|[Fields](https://developer.android.com/reference/android/service/autofill/FillRequest#lfields)\|[Methods](https://developer.android.com/reference/android/service/autofill/FillRequest#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/service/autofill/FillRequest#inhmethods)  

# FillRequest

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/service/autofill/FillRequest "View this page in Kotlin")\|Java

`
public

final

class
FillRequest
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


implements

`[Parcelable](https://developer.android.com/reference/android/os/Parcelable)`


`

|---|--------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.service.autofill.FillRequest |

<br />

*** ** * ** ***

This class represents a request to an autofill service to interpret the screen and provide information to the system which views are interesting for saving and what are the possible ways to fill the inputs on the screen if applicable.  
**See also:**

- [AutofillService.onFillRequest(FillRequest, android.os.CancellationSignal, FillCallback)](https://developer.android.com/reference/android/service/autofill/AutofillService#onFillRequest(android.service.autofill.FillRequest,%20android.os.CancellationSignal,%20android.service.autofill.FillCallback))

## Summary

|                                                                                                                                                     ### Constants                                                                                                                                                     ||
|-------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [FLAG_COMPATIBILITY_MODE_REQUEST](https://developer.android.com/reference/android/service/autofill/FillRequest#FLAG_COMPATIBILITY_MODE_REQUEST) Indicates this request was made using[compatibility mode](https://developer.android.com/reference/android/service/autofill/AutofillService#CompatibilityMode). |
| `int` | [FLAG_MANUAL_REQUEST](https://developer.android.com/reference/android/service/autofill/FillRequest#FLAG_MANUAL_REQUEST) Indicates autofill was explicitly requested by the user.                                                                                                                               |
| `int` | [FLAG_SUPPORTS_FILL_DIALOG](https://developer.android.com/reference/android/service/autofill/FillRequest#FLAG_SUPPORTS_FILL_DIALOG) *This constant was deprecated in API level 36. All requests would support fill dialog by default. Presence of this flag isn't needed.*                                     |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ### Inherited constants                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From interface[android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable) |-------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `int` | [CONTENTS_FILE_DESCRIPTOR](https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR) Descriptor bit used with[describeContents()](https://developer.android.com/reference/android/os/Parcelable#describeContents()): indicates that the Parcelable object's flattened representation includes a file descriptor.                                                                                                                                            | | `int` | [PARCELABLE_WRITE_RETURN_VALUE](https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE) Flag for use with[writeToParcel(Parcel, int)](https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)): the object being written is a return value, that is the result of a function such as "`Parcelable someFunction()`", "`void someFunction(out Parcelable)`", or "`void someFunction(inout Parcelable)`". | |

|                                                                                                                                                    ### Fields                                                                                                                                                    ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------|
| ` public static final `[Creator](https://developer.android.com/reference/android/os/Parcelable.Creator)`<`[FillRequest](https://developer.android.com/reference/android/service/autofill/FillRequest)`>` | [CREATOR](https://developer.android.com/reference/android/service/autofill/FillRequest#CREATOR) <br /> |

|                                                                                                                                                                                                                                        ### Public methods                                                                                                                                                                                                                                        ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` int`                                                                                                                                                             | ` `[describeContents](https://developer.android.com/reference/android/service/autofill/FillRequest#describeContents())`() ` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.                                                                                          |
| ` `[Bundle](https://developer.android.com/reference/android/os/Bundle)                                                                                             | ` `[getClientState](https://developer.android.com/reference/android/service/autofill/FillRequest#getClientState())`() ` Gets the latest client state bundle set by the service in a[fill response](https://developer.android.com/reference/android/service/autofill/FillResponse.Builder#setClientState(android.os.Bundle)). |
| ` `[IntentSender](https://developer.android.com/reference/android/content/IntentSender)                                                                            | ` `[getDelayedFillIntentSender](https://developer.android.com/reference/android/service/autofill/FillRequest#getDelayedFillIntentSender())`() ` Gets the[IntentSender](https://developer.android.com/reference/android/content/IntentSender)to send a delayed fill response.                                                 |
| ` `[List](https://developer.android.com/reference/java/util/List)`<`[FillContext](https://developer.android.com/reference/android/service/autofill/FillContext)`>` | ` `[getFillContexts](https://developer.android.com/reference/android/service/autofill/FillRequest#getFillContexts())`() ` Gets the contexts associated with each previous fill request.                                                                                                                                      |
| ` int`                                                                                                                                                             | ` `[getFlags](https://developer.android.com/reference/android/service/autofill/FillRequest#getFlags())`() ` Gets the flags associated with this request.                                                                                                                                                                     |
| ` `[List](https://developer.android.com/reference/java/util/List)`<`[String](https://developer.android.com/reference/java/lang/String)`>`                          | ` `[getHints](https://developer.android.com/reference/android/service/autofill/FillRequest#getHints())`() ` Sends a list of datatypes for the Autofill Provider.                                                                                                                                                             |
| ` int`                                                                                                                                                             | ` `[getId](https://developer.android.com/reference/android/service/autofill/FillRequest#getId())`() ` Gets the unique id of this request.                                                                                                                                                                                    |
| ` `[InlineSuggestionsRequest](https://developer.android.com/reference/android/view/inputmethod/InlineSuggestionsRequest)                                           | ` `[getInlineSuggestionsRequest](https://developer.android.com/reference/android/service/autofill/FillRequest#getInlineSuggestionsRequest())`() ` Gets the[InlineSuggestionsRequest](https://developer.android.com/reference/android/view/inputmethod/InlineSuggestionsRequest)associated with this request.                 |
| ` `[String](https://developer.android.com/reference/java/lang/String)                                                                                              | ` `[toString](https://developer.android.com/reference/android/service/autofill/FillRequest#toString())`() ` Returns a string representation of the object.                                                                                                                                                                   |
| ` void`                                                                                                                                                            | ` `[writeToParcel](https://developer.android.com/reference/android/service/autofill/FillRequest#writeToParcel(android.os.Parcel,%20int))`(`[Parcel](https://developer.android.com/reference/android/os/Parcel)` dest, int flags) ` Flatten this object in to a Parcel.                                                       |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||
| From interface` `[android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable)` ` |------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract int`  | ` `[describeContents](https://developer.android.com/reference/android/os/Parcelable#describeContents())`() ` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.                                    | | ` abstract void` | ` `[writeToParcel](https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int))`(`[Parcel](https://developer.android.com/reference/android/os/Parcel)` dest, int flags) ` Flatten this object in to a Parcel. | ||

## Constants

### FLAG_COMPATIBILITY_MODE_REQUEST

Added in[API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int FLAG_COMPATIBILITY_MODE_REQUEST
```

Indicates this request was made using[compatibility mode](https://developer.android.com/reference/android/service/autofill/AutofillService#CompatibilityMode).  
Value is either`0`or a combination of[FLAG_MANUAL_REQUEST](https://developer.android.com/reference/android/service/autofill/FillRequest#FLAG_MANUAL_REQUEST),[FLAG_COMPATIBILITY_MODE_REQUEST](https://developer.android.com/reference/android/service/autofill/FillRequest#FLAG_COMPATIBILITY_MODE_REQUEST), android.service.autofill.FillRequest.FLAG_PASSWORD_INPUT_TYPE, android.service.autofill.FillRequest.FLAG_VIEW_NOT_FOCUSED,[FLAG_SUPPORTS_FILL_DIALOG](https://developer.android.com/reference/android/service/autofill/FillRequest#FLAG_SUPPORTS_FILL_DIALOG), android.service.autofill.FillRequest.FLAG_IME_SHOWING, android.service.autofill.FillRequest.FLAG_RESET_FILL_DIALOG_STATE, android.service.autofill.FillRequest.FLAG_PCC_DETECTION, android.service.autofill.FillRequest.FLAG_SCREEN_HAS_CREDMAN_FIELD, and android.service.autofill.FillRequest.FLAG_VIEW_REQUESTS_CREDMAN_SERVICE

<br />

Constant Value: 2 (0x00000002)  

### FLAG_MANUAL_REQUEST

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int FLAG_MANUAL_REQUEST
```

Indicates autofill was explicitly requested by the user.

Users typically make an explicit request to autofill a screen in two situations:

- The app disabled autofill (using[View.setImportantForAutofill(int)](https://developer.android.com/reference/android/view/View#setImportantForAutofill(int)).
- The service could not figure out how to autofill a screen (but the user knows the service has data for that app).

This flag is particularly useful for the second case. For example, the service could offer a complex UI where the user can map which screen views belong to each user data, or it could offer a simpler UI where the user picks the data for just the view used to trigger the request (that would be the view whose[AssistStructure.ViewNode.isFocused()](https://developer.android.com/reference/android/app/assist/AssistStructure.ViewNode#isFocused())method returns`true`).

An explicit autofill request is triggered when the[AutofillManager.requestAutofill(View)](https://developer.android.com/reference/android/view/autofill/AutofillManager#requestAutofill(android.view.View))or[AutofillManager.requestAutofill(View, int, android.graphics.Rect)](https://developer.android.com/reference/android/view/autofill/AutofillManager#requestAutofill(android.view.View,%20int,%20android.graphics.Rect))is called. For example, standard[TextView](https://developer.android.com/reference/android/widget/TextView)views show an`AUTOFILL`option in the overflow menu that triggers such request.  
Value is either`0`or a combination of[FLAG_MANUAL_REQUEST](https://developer.android.com/reference/android/service/autofill/FillRequest#FLAG_MANUAL_REQUEST),[FLAG_COMPATIBILITY_MODE_REQUEST](https://developer.android.com/reference/android/service/autofill/FillRequest#FLAG_COMPATIBILITY_MODE_REQUEST), android.service.autofill.FillRequest.FLAG_PASSWORD_INPUT_TYPE, android.service.autofill.FillRequest.FLAG_VIEW_NOT_FOCUSED,[FLAG_SUPPORTS_FILL_DIALOG](https://developer.android.com/reference/android/service/autofill/FillRequest#FLAG_SUPPORTS_FILL_DIALOG), android.service.autofill.FillRequest.FLAG_IME_SHOWING, android.service.autofill.FillRequest.FLAG_RESET_FILL_DIALOG_STATE, android.service.autofill.FillRequest.FLAG_PCC_DETECTION, android.service.autofill.FillRequest.FLAG_SCREEN_HAS_CREDMAN_FIELD, and android.service.autofill.FillRequest.FLAG_VIEW_REQUESTS_CREDMAN_SERVICE

<br />

Constant Value: 1 (0x00000001)  

### FLAG_SUPPORTS_FILL_DIALOG

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Deprecated in[API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int FLAG_SUPPORTS_FILL_DIALOG
```

<br />

**This constant was deprecated in API level 36.**   
All requests would support fill dialog by default. Presence of this flag isn't needed.

Indicates the request supports fill dialog presentation for the fields, the system will send the request when the activity just started.  
Value is either`0`or a combination of[FLAG_MANUAL_REQUEST](https://developer.android.com/reference/android/service/autofill/FillRequest#FLAG_MANUAL_REQUEST),[FLAG_COMPATIBILITY_MODE_REQUEST](https://developer.android.com/reference/android/service/autofill/FillRequest#FLAG_COMPATIBILITY_MODE_REQUEST), android.service.autofill.FillRequest.FLAG_PASSWORD_INPUT_TYPE, android.service.autofill.FillRequest.FLAG_VIEW_NOT_FOCUSED,[FLAG_SUPPORTS_FILL_DIALOG](https://developer.android.com/reference/android/service/autofill/FillRequest#FLAG_SUPPORTS_FILL_DIALOG), android.service.autofill.FillRequest.FLAG_IME_SHOWING, android.service.autofill.FillRequest.FLAG_RESET_FILL_DIALOG_STATE, android.service.autofill.FillRequest.FLAG_PCC_DETECTION, android.service.autofill.FillRequest.FLAG_SCREEN_HAS_CREDMAN_FIELD, and android.service.autofill.FillRequest.FLAG_VIEW_REQUESTS_CREDMAN_SERVICE

<br />

Constant Value: 64 (0x00000040)

## Fields

### CREATOR

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final Creator<FillRequest> CREATOR
```

<br />

<br />

## Public methods

### describeContents

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
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)](https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)), the return value of this method must include the[CONTENTS_FILE_DESCRIPTOR](https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR)bit.

<br />

|                                                                                                                         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](https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR) <br /> |

### getClientState

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public Bundle getClientState ()
```

Gets the latest client state bundle set by the service in a[fill response](https://developer.android.com/reference/android/service/autofill/FillResponse.Builder#setClientState(android.os.Bundle)).

**Note:** Prior to Android[Build.VERSION_CODES.P](https://developer.android.com/reference/android/os/Build.VERSION_CODES#P), only client state bundles set by[FillResponse.Builder.setClientState(Bundle)](https://developer.android.com/reference/android/service/autofill/FillResponse.Builder#setClientState(android.os.Bundle))were considered. On Android[Build.VERSION_CODES.P](https://developer.android.com/reference/android/os/Build.VERSION_CODES#P)and higher, bundles set in the result of an authenticated request through the[AutofillManager.EXTRA_CLIENT_STATE](https://developer.android.com/reference/android/view/autofill/AutofillManager#EXTRA_CLIENT_STATE)extra are also considered (and take precedence when set).

<br />

|                                                        Returns                                                         ||
|---------------------------------------------------------------------|---------------------------------------------------|
| [Bundle](https://developer.android.com/reference/android/os/Bundle) | The client state. This value may be`null`. <br /> |

### getDelayedFillIntentSender

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public IntentSender getDelayedFillIntentSender ()
```

Gets the[IntentSender](https://developer.android.com/reference/android/content/IntentSender)to send a delayed fill response.

The autofill service must first indicate that it wants to return a delayed[FillResponse](https://developer.android.com/reference/android/service/autofill/FillResponse)by setting[FillResponse.FLAG_DELAY_FILL](https://developer.android.com/reference/android/service/autofill/FillResponse#FLAG_DELAY_FILL)in a successful fill response. Then it can use this IntentSender to send an Intent with extra[AutofillService.EXTRA_FILL_RESPONSE](https://developer.android.com/reference/android/service/autofill/AutofillService#EXTRA_FILL_RESPONSE)with the delayed response.

Note that this may be null if a delayed fill response is not supported for this fill request.

<br />

<br />

|                                           Returns                                            ||
|--------------------------------------------------------------------------------------|--------|
| [IntentSender](https://developer.android.com/reference/android/content/IntentSender) | <br /> |

### getFillContexts

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public List<FillContext> getFillContexts ()
```

Gets the contexts associated with each previous fill request.

**Note:** Starting on Android[Build.VERSION_CODES.Q](https://developer.android.com/reference/android/os/Build.VERSION_CODES#Q), it could also include contexts from requests whose[SaveInfo](https://developer.android.com/reference/android/service/autofill/SaveInfo)had the[SaveInfo.FLAG_DELAY_SAVE](https://developer.android.com/reference/android/service/autofill/SaveInfo#FLAG_DELAY_SAVE)flag.

<br />

|                                                                                               Returns                                                                                               ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------|
| [List](https://developer.android.com/reference/java/util/List)`<`[FillContext](https://developer.android.com/reference/android/service/autofill/FillContext)`>` | This value cannot be`null`. <br /> |

### getFlags

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public int getFlags ()
```

Gets the flags associated with this request.

<br />

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ||
|-------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | any combination of[FLAG_MANUAL_REQUEST](https://developer.android.com/reference/android/service/autofill/FillRequest#FLAG_MANUAL_REQUEST),[FLAG_SUPPORTS_FILL_DIALOG](https://developer.android.com/reference/android/service/autofill/FillRequest#FLAG_SUPPORTS_FILL_DIALOG)and[FLAG_COMPATIBILITY_MODE_REQUEST](https://developer.android.com/reference/android/service/autofill/FillRequest#FLAG_COMPATIBILITY_MODE_REQUEST). Value is either`0`or a combination of[FLAG_MANUAL_REQUEST](https://developer.android.com/reference/android/service/autofill/FillRequest#FLAG_MANUAL_REQUEST),[FLAG_COMPATIBILITY_MODE_REQUEST](https://developer.android.com/reference/android/service/autofill/FillRequest#FLAG_COMPATIBILITY_MODE_REQUEST), android.service.autofill.FillRequest.FLAG_PASSWORD_INPUT_TYPE, android.service.autofill.FillRequest.FLAG_VIEW_NOT_FOCUSED,[FLAG_SUPPORTS_FILL_DIALOG](https://developer.android.com/reference/android/service/autofill/FillRequest#FLAG_SUPPORTS_FILL_DIALOG), android.service.autofill.FillRequest.FLAG_IME_SHOWING, android.service.autofill.FillRequest.FLAG_RESET_FILL_DIALOG_STATE, android.service.autofill.FillRequest.FLAG_PCC_DETECTION, android.service.autofill.FillRequest.FLAG_SCREEN_HAS_CREDMAN_FIELD, and android.service.autofill.FillRequest.FLAG_VIEW_REQUESTS_CREDMAN_SERVICE <br /> |

### getHints

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public List<String> getHints ()
```

Sends a list of datatypes for the Autofill Provider. If this is populated, Autofill Provider should return data for the autofill hints requested here, even though the Autofill Provider may not have detected these types. The hints would be part of HintConstants: https://developer.android.com/reference/androidx/autofill/HintConstants This is populated if the platform's field detection is enabled.

<br />

|                                                                                  Returns                                                                                   ||
|----------------------------------------------------------------------------------------------------------------------------------------|------------------------------------|
| [List](https://developer.android.com/reference/java/util/List)`<`[String](https://developer.android.com/reference/java/lang/String)`>` | This value cannot be`null`. <br /> |

### getId

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public int getId ()
```

Gets the unique id of this request.

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### getInlineSuggestionsRequest

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public InlineSuggestionsRequest getInlineSuggestionsRequest ()
```

Gets the[InlineSuggestionsRequest](https://developer.android.com/reference/android/view/inputmethod/InlineSuggestionsRequest)associated with this request.

Autofill Framework will send a`@non-null`[InlineSuggestionsRequest](https://developer.android.com/reference/android/view/inputmethod/InlineSuggestionsRequest)if currently inline suggestions are supported and can be displayed. If the Autofill service wants to show inline suggestions, they may return[Dataset](https://developer.android.com/reference/android/service/autofill/Dataset)with valid[InlinePresentation](https://developer.android.com/reference/android/service/autofill/InlinePresentation).

The Autofill Service must set supportsInlineSuggestions in its XML to enable support for inline suggestions.

<br />

<br />

|                                                                     Returns                                                                      ||
|-----------------------------------------------------------------------------------------------------------------------|---------------------------|
| [InlineSuggestionsRequest](https://developer.android.com/reference/android/view/inputmethod/InlineSuggestionsRequest) | the suggestionspec <br /> |

### toString

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public String toString ()
```

Returns a string representation of the object.

<br />

|                                                      Returns                                                      ||
|--------------------------------------------------------------------|-----------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | a string representation of the object. <br /> |

### writeToParcel

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public void writeToParcel (Parcel dest, 
                int flags)
```

Flatten this object in to a Parcel.

<br />

|                                                                                                                                                                                                                               Parameters                                                                                                                                                                                                                                ||
|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `dest`  | `Parcel`: This value cannot be`null`. <br />                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `flags` | `int`: Additional flags about how the object should be written. May be 0 or[Parcelable.PARCELABLE_WRITE_RETURN_VALUE](https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE). Value is either`0`or a combination of[Parcelable.PARCELABLE_WRITE_RETURN_VALUE](https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE), and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES <br /> |