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

# android.service.autofill

*** ** * ** ***

## Interfaces

|---|---|
| [OnClickAction](https://developer.android.com/reference/android/service/autofill/OnClickAction) | Class used to define an action to be performed when a child view in a `https://developer.android.com/reference/android/widget/RemoteViews` is clicked. |
| [Sanitizer](https://developer.android.com/reference/android/service/autofill/Sanitizer) | Helper class used to sanitize user input before using it in a save request. |
| [SavedDatasetsInfoCallback](https://developer.android.com/reference/android/service/autofill/SavedDatasetsInfoCallback) | Handles the response to `https://developer.android.com/reference/android/service/autofill/AutofillService#onSavedDatasetsInfoRequest(android.service.autofill.SavedDatasetsInfoCallback)`. |
| [Transformation](https://developer.android.com/reference/android/service/autofill/Transformation) | Helper class used to change a child view of a `https://developer.android.com/reference/android/widget/RemoteViews` at runtime, using the values of fields contained in the screen. |
| [Validator](https://developer.android.com/reference/android/service/autofill/Validator) | Class used to define whether a condition is satisfied. |

## Classes

|---|---|
| [AutofillService](https://developer.android.com/reference/android/service/autofill/AutofillService) | An `AutofillService` is a service used to automatically fill the contents of the screen on behalf of a given user - for more information about autofill, read [Autofill Framework](https://developer.android.com/preview/features/autofill). |
| [BatchUpdates](https://developer.android.com/reference/android/service/autofill/BatchUpdates) | Defines actions to be applied to a `https://developer.android.com/reference/android/widget/RemoteViews`. |
| [BatchUpdates.Builder](https://developer.android.com/reference/android/service/autofill/BatchUpdates.Builder) | Builder for `https://developer.android.com/reference/android/service/autofill/BatchUpdates` objects. |
| [CharSequenceTransformation](https://developer.android.com/reference/android/service/autofill/CharSequenceTransformation) | Replaces a `https://developer.android.com/reference/android/widget/TextView` child of a `https://developer.android.com/reference/android/service/autofill/CustomDescription` with the contents of one or more regular expressions (regexs). |
| [CharSequenceTransformation.Builder](https://developer.android.com/reference/android/service/autofill/CharSequenceTransformation.Builder) | Builder for `https://developer.android.com/reference/android/service/autofill/CharSequenceTransformation` objects. |
| [CustomDescription](https://developer.android.com/reference/android/service/autofill/CustomDescription) | Defines a custom description for the autofill save UI. |
| [CustomDescription.Builder](https://developer.android.com/reference/android/service/autofill/CustomDescription.Builder) | Builder for `https://developer.android.com/reference/android/service/autofill/CustomDescription` objects. |
| [Dataset](https://developer.android.com/reference/android/service/autofill/Dataset) | A `Dataset` object represents a group of fields (key / value pairs) used to autofill parts of a screen. |
| [Dataset.Builder](https://developer.android.com/reference/android/service/autofill/Dataset.Builder) | A builder for `https://developer.android.com/reference/android/service/autofill/Dataset` objects. |
| [DateTransformation](https://developer.android.com/reference/android/service/autofill/DateTransformation) | Replaces a `https://developer.android.com/reference/android/widget/TextView` child of a `https://developer.android.com/reference/android/service/autofill/CustomDescription` with the contents of a field that is expected to have a `https://developer.android.com/reference/android/view/autofill/AutofillValue#forDate(long)`. |
| [DateValueSanitizer](https://developer.android.com/reference/android/service/autofill/DateValueSanitizer) | Sanitizes a date `https://developer.android.com/reference/android/view/autofill/AutofillValue` using a `https://developer.android.com/reference/android/icu/text/DateFormat`. |
| [Field](https://developer.android.com/reference/android/service/autofill/Field) | This class is used to set all information of a field. |
| [Field.Builder](https://developer.android.com/reference/android/service/autofill/Field.Builder) | A builder for `https://developer.android.com/reference/android/service/autofill/Field` |
| [FieldClassification](https://developer.android.com/reference/android/service/autofill/FieldClassification) | Represents the [field classification](https://developer.android.com/reference/android/service/autofill/AutofillService#FieldClassification) results for a given field. |
| [FieldClassification.Match](https://developer.android.com/reference/android/service/autofill/FieldClassification.Match) | Represents the score of a `https://developer.android.com/reference/android/service/autofill/UserData` entry for the field. |
| [FillCallback](https://developer.android.com/reference/android/service/autofill/FillCallback) | `FillCallback` handles autofill requests from the `https://developer.android.com/reference/android/service/autofill/AutofillService` into the `https://developer.android.com/reference/android/app/Activity` being autofilled. |
| [FillContext](https://developer.android.com/reference/android/service/autofill/FillContext) | This class represents a context for each fill request made via `https://developer.android.com/reference/android/service/autofill/AutofillService#onFillRequest(android.service.autofill.FillRequest,%20android.os.CancellationSignal,%20android.service.autofill.FillCallback)`. |
| [FillEventHistory](https://developer.android.com/reference/android/service/autofill/FillEventHistory) | Describes what happened after the last `https://developer.android.com/reference/android/service/autofill/AutofillService#onFillRequest(android.service.autofill.FillRequest,%20android.os.CancellationSignal,%20android.service.autofill.FillCallback)` call. |
| [FillEventHistory.Event](https://developer.android.com/reference/android/service/autofill/FillEventHistory.Event) | Description of an event that occurred after the latest call to `https://developer.android.com/reference/android/service/autofill/FillCallback#onSuccess(android.service.autofill.FillResponse)`. |
| [FillRequest](https://developer.android.com/reference/android/service/autofill/FillRequest) | 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. |
| [FillResponse](https://developer.android.com/reference/android/service/autofill/FillResponse) | Response for an `https://developer.android.com/reference/android/service/autofill/AutofillService#onFillRequest(android.service.autofill.FillRequest,%20android.os.CancellationSignal,%20android.service.autofill.FillCallback)`. |
| [FillResponse.Builder](https://developer.android.com/reference/android/service/autofill/FillResponse.Builder) | Builder for `https://developer.android.com/reference/android/service/autofill/FillResponse` objects. |
| [ImageTransformation](https://developer.android.com/reference/android/service/autofill/ImageTransformation) | Replaces the content of a child `https://developer.android.com/reference/android/widget/ImageView` of a `https://developer.android.com/reference/android/widget/RemoteViews` with the first image that matches a regular expression (regex). |
| [ImageTransformation.Builder](https://developer.android.com/reference/android/service/autofill/ImageTransformation.Builder) | Builder for `https://developer.android.com/reference/android/service/autofill/ImageTransformation` objects. |
| [InlinePresentation](https://developer.android.com/reference/android/service/autofill/InlinePresentation) | Wrapper class holding a `https://developer.android.com/reference/android/app/slice/Slice` and an `https://developer.android.com/reference/android/widget/inline/InlinePresentationSpec` for rendering UI for an Inline Suggestion. |
| [LuhnChecksumValidator](https://developer.android.com/reference/android/service/autofill/LuhnChecksumValidator) | Validator that returns `true` if the number created by concatenating all given fields pass a Luhn algorithm checksum. |
| [Presentations](https://developer.android.com/reference/android/service/autofill/Presentations) | Holds presentations used to visualize autofill suggestions for each available UI type. |
| [Presentations.Builder](https://developer.android.com/reference/android/service/autofill/Presentations.Builder) | A builder for `https://developer.android.com/reference/android/service/autofill/Presentations` |
| [RegexValidator](https://developer.android.com/reference/android/service/autofill/RegexValidator) | Defines if a field is valid based on a regular expression (regex). |
| [SaveCallback](https://developer.android.com/reference/android/service/autofill/SaveCallback) | Handles save requests from the `https://developer.android.com/reference/android/service/autofill/AutofillService` into the `https://developer.android.com/reference/android/app/Activity` being autofilled. |
| [SavedDatasetsInfo](https://developer.android.com/reference/android/service/autofill/SavedDatasetsInfo) | A result returned from `https://developer.android.com/reference/android/service/autofill/AutofillService#onSavedDatasetsInfoRequest(android.service.autofill.SavedDatasetsInfoCallback)`. |
| [SaveInfo](https://developer.android.com/reference/android/service/autofill/SaveInfo) | Information used to indicate that an `https://developer.android.com/reference/android/service/autofill/AutofillService` is interested on saving the user-inputed data for future use, through a `https://developer.android.com/reference/android/service/autofill/AutofillService#onSaveRequest(android.service.autofill.SaveRequest,%20android.service.autofill.SaveCallback)` call. |
| [SaveInfo.Builder](https://developer.android.com/reference/android/service/autofill/SaveInfo.Builder) | A builder for `https://developer.android.com/reference/android/service/autofill/SaveInfo` objects. |
| [SaveRequest](https://developer.android.com/reference/android/service/autofill/SaveRequest) | This class represents a request to an `https://developer.android.com/reference/android/service/autofill/AutofillService` to save applicable data entered by the user. |
| [TextValueSanitizer](https://developer.android.com/reference/android/service/autofill/TextValueSanitizer) | Sanitizes a text `https://developer.android.com/reference/android/view/autofill/AutofillValue` using a regular expression (regex) substitution. |
| [UserData](https://developer.android.com/reference/android/service/autofill/UserData) | Defines the user data used for [field classification](https://developer.android.com/reference/android/service/autofill/AutofillService#FieldClassification). |
| [UserData.Builder](https://developer.android.com/reference/android/service/autofill/UserData.Builder) | A builder for `https://developer.android.com/reference/android/service/autofill/UserData` objects. |
| [Validators](https://developer.android.com/reference/android/service/autofill/Validators) | Factory for `https://developer.android.com/reference/android/service/autofill/Validator` operations. |
| [VisibilitySetterAction](https://developer.android.com/reference/android/service/autofill/VisibilitySetterAction) | Action used to change the visibility of other child view in a `https://developer.android.com/reference/android/service/autofill/CustomDescription` `https://developer.android.com/reference/android/widget/RemoteViews`. |
| [VisibilitySetterAction.Builder](https://developer.android.com/reference/android/service/autofill/VisibilitySetterAction.Builder) | Builder for `https://developer.android.com/reference/android/service/autofill/VisibilitySetterAction` objects. |

-

  ## Interfaces

  - [OnClickAction](https://developer.android.com/reference/android/service/autofill/OnClickAction)
  - [Sanitizer](https://developer.android.com/reference/android/service/autofill/Sanitizer)
  - [SavedDatasetsInfoCallback](https://developer.android.com/reference/android/service/autofill/SavedDatasetsInfoCallback)
  - [Transformation](https://developer.android.com/reference/android/service/autofill/Transformation)
  - [Validator](https://developer.android.com/reference/android/service/autofill/Validator)
-

  ## Classes

  - [AutofillService](https://developer.android.com/reference/android/service/autofill/AutofillService)
  - [BatchUpdates](https://developer.android.com/reference/android/service/autofill/BatchUpdates)
  - [BatchUpdates.Builder](https://developer.android.com/reference/android/service/autofill/BatchUpdates.Builder)
  - [CharSequenceTransformation](https://developer.android.com/reference/android/service/autofill/CharSequenceTransformation)
  - [CharSequenceTransformation.Builder](https://developer.android.com/reference/android/service/autofill/CharSequenceTransformation.Builder)
  - [CustomDescription](https://developer.android.com/reference/android/service/autofill/CustomDescription)
  - [CustomDescription.Builder](https://developer.android.com/reference/android/service/autofill/CustomDescription.Builder)
  - [Dataset](https://developer.android.com/reference/android/service/autofill/Dataset)
  - [Dataset.Builder](https://developer.android.com/reference/android/service/autofill/Dataset.Builder)
  - [DateTransformation](https://developer.android.com/reference/android/service/autofill/DateTransformation)
  - [DateValueSanitizer](https://developer.android.com/reference/android/service/autofill/DateValueSanitizer)
  - [Field](https://developer.android.com/reference/android/service/autofill/Field)
  - [Field.Builder](https://developer.android.com/reference/android/service/autofill/Field.Builder)
  - [FieldClassification](https://developer.android.com/reference/android/service/autofill/FieldClassification)
  - [FieldClassification.Match](https://developer.android.com/reference/android/service/autofill/FieldClassification.Match)
  - [FillCallback](https://developer.android.com/reference/android/service/autofill/FillCallback)
  - [FillContext](https://developer.android.com/reference/android/service/autofill/FillContext)
  - [FillEventHistory](https://developer.android.com/reference/android/service/autofill/FillEventHistory)
  - [FillEventHistory.Event](https://developer.android.com/reference/android/service/autofill/FillEventHistory.Event)
  - [FillRequest](https://developer.android.com/reference/android/service/autofill/FillRequest)
  - [FillResponse](https://developer.android.com/reference/android/service/autofill/FillResponse)
  - [FillResponse.Builder](https://developer.android.com/reference/android/service/autofill/FillResponse.Builder)
  - [ImageTransformation](https://developer.android.com/reference/android/service/autofill/ImageTransformation)
  - [ImageTransformation.Builder](https://developer.android.com/reference/android/service/autofill/ImageTransformation.Builder)
  - [InlinePresentation](https://developer.android.com/reference/android/service/autofill/InlinePresentation)
  - [LuhnChecksumValidator](https://developer.android.com/reference/android/service/autofill/LuhnChecksumValidator)
  - [Presentations](https://developer.android.com/reference/android/service/autofill/Presentations)
  - [Presentations.Builder](https://developer.android.com/reference/android/service/autofill/Presentations.Builder)
  - [RegexValidator](https://developer.android.com/reference/android/service/autofill/RegexValidator)
  - [SaveCallback](https://developer.android.com/reference/android/service/autofill/SaveCallback)
  - [SavedDatasetsInfo](https://developer.android.com/reference/android/service/autofill/SavedDatasetsInfo)
  - [SaveInfo](https://developer.android.com/reference/android/service/autofill/SaveInfo)
  - [SaveInfo.Builder](https://developer.android.com/reference/android/service/autofill/SaveInfo.Builder)
  - [SaveRequest](https://developer.android.com/reference/android/service/autofill/SaveRequest)
  - [TextValueSanitizer](https://developer.android.com/reference/android/service/autofill/TextValueSanitizer)
  - [UserData](https://developer.android.com/reference/android/service/autofill/UserData)
  - [UserData.Builder](https://developer.android.com/reference/android/service/autofill/UserData.Builder)
  - [Validators](https://developer.android.com/reference/android/service/autofill/Validators)
  - [VisibilitySetterAction](https://developer.android.com/reference/android/service/autofill/VisibilitySetterAction)
  - [VisibilitySetterAction.Builder](https://developer.android.com/reference/android/service/autofill/VisibilitySetterAction.Builder)