Autofill
Improve autofill accuracy via extending hints.
Latest Update Stable Release Release Candidate Beta Release Alpha Release
September 18, 2024 1.1.0 - 1.3.0-beta01 -

Declaring dependencies

To add a dependency on Autofill, you must add the Google Maven repository to your project. Read Google's Maven repository for more information.

Add the dependencies for the artifacts you need in the build.gradle file for your app or module:

Groovy

dependencies {
    implementation "androidx.autofill:autofill:1.1.0"
}

Kotlin

dependencies {
    implementation("androidx.autofill:autofill:1.1.0")
}

For more information about dependencies, see Add build dependencies.

Feedback

Your feedback helps make Jetpack better. Let us know if you discover new issues or have ideas for improving this library. Please take a look at the existing issues in this library before you create a new one. You can add your vote to an existing issue by clicking the star button.

Create a new issue

See the Issue Tracker documentation for more information.

Version 1.3

Version 1.3.0-beta01

September 18, 2024

androidx.autofill:autofill:1.3.0-beta01 is released. Version 1.3.0-beta01 contains these commits.

Version 1.3.0-alpha01

May 24, 2023

androidx.autofill:autofill:1.3.0-alpha01 is released. Version 1.3.0-alpha01 contains these commits.

API Changes

  • Adds autofill hint constants for wallet valuables types. (Ie5d9d)

Version 1.2.0

Version 1.2.0-beta01

July 21, 2021

androidx.autofill:autofill:1.2.0-beta01 is released. Version 1.2.0-beta01 contains these commits.

New Features

  • Added new extended hint constants for more requested field types:
    • WiFi Password
    • Email OTP
    • Authenticator app OTP
    • UPI address
    • Address unit
    • Address dependent locality
    • Promo codes

Version 1.2.0-alpha02

June 2, 2021

androidx.autofill:autofill:1.2.0-alpha02 is released.

API Changes

  • AUTOFILL_HINT_TFA_APP_OTP renamed to AUTOFILL_HINT_2FA_APP_OTP to match the canonical representation of two-factor authentication.

Version 1.2.0-alpha01

March 24, 2021

androidx.autofill:autofill:1.2.0-alpha01 is released. Version 1.2.0-alpha01 contains these commits.

New Features

  • Added new extended hint constants for more requested field types:
    • WiFi Password
    • Email OTP
    • Authenticator app OTP
    • UPI address
    • Address unit
    • Address dependent locality
    • Promo codes

API Changes

  • Added new autofill hints for some requested types (Email OTP, Granular address fields, Promo codes, UPI ID). (I89e2f)

Version 1.1.0

Version 1.1.0

January 27, 2021

androidx.autofill:autofill:1.1.0 is released. Version 1.1.0 contains these commits.

Major changes since 1.0.0

  • Adds a set of APIs to support constructing Autofill inline suggestions, a new feature that was introduced in Android 11. See the IME Autofill Guide for more information.
  • Specifically, v1 UI template InlineSuggestionUi is introduced, with example code in the javadoc, to help IME developers to specify inline suggestion styles, and Autofill provider developers to construct inline suggestion contents.

Version 1.1.0-rc01

November 11, 2020

androidx.autofill:autofill:1.1.0-rc01 is released with no change since 1.1.0-beta01. Version 1.1.0-rc01 contains these commits.

Version 1.1.0-beta01

October 14, 2020

androidx.autofill:autofill:1.1.0-beta01 is released with no changes since 1.1.0-alpha02. Version 1.1.0-beta01 contains these commits.

Version 1.1.0-alpha02

August 19, 2020

androidx.autofill:autofill:1.1.0-alpha02 is released. Version 1.1.0-alpha02 contains these commits.

API Changes

  • Updated the required API version of the autofill inline suggestion library from Q to R (I983a5)
  • InlineSuggestionUi helper added to allow autofill services to generate inline presentations
  • Renderer added to help IME providers to inflate inline presentations sent by autofill services
  • Styling and theming support for IME providers added as part of v1 versioned style API

Version 1.1.0-alpha01

March 18, 2020

androidx.autofill:autofill:1.1.0-alpha01 is released. Version 1.1.0-alpha01 contains these commits.

New Features

  • InlinePresentationBuilder added to help autofill providers to interface with the new keyboard based InlineSuggestionRequest
  • InlinePresentationRenderer added to help keyboard providers to render Slices given by autofill providers
  • InlineSuggestionsHostView added to allow keyboard providers to constrain where the slices are rendered

Version 1.0.0

Version 1.0.0

December 4, 2019

androidx.autofill:autofill:1.0.0 is released. Version 1.0.0 contains these commits.

Major features of 1.0.0

  • First stable version of the autofill module.
  • Adds a standard set of supported autofill hint constants which should be supported by all autofill services.

Version 1.0.0-rc01

October 23, 2019

androidx.autofill:autofill:1.0.0-rc01 is released with no changes since 1.0.0-beta01. Version 1.0.0-rc01 contains these commits.

Version 1.0.0-beta01

September 18, 2019

androidx.autofill:autofill:1.0.0-beta01 is released. Version 1.0.0-beta01 contains these commits.

New features

  • Added support for annotating One Time Password (OTP) fields which can be filled by reading the code from an SMS.
  • Generator function added to get hint constants for single character OTP fields.

Version 1.0.0-alpha02

August 7, 2019

androidx.autofill:autofill:1.0.0-alpha02 is released. The commits included in this version can be found here.

New features

  • New hint constants added to support annotation of SMS One Time Password (OTP) codes.

Version 1.0.0-alpha01

July 2, 2019

This is the first release of androidx.autofill:autofill:1.0.0-alpha01. The commits included in this initial version can be found here.

New features

This is the initial release of autofill AndroidX module. It provides new autofill hint constants added to allow more granular annotation of form fields.