The second Android 11 Developer Preview is now available, test it out and share your feedback.


Latest Update Current Stable Release Next Release Candidate Beta Release Alpha Release
January 22, 2020 - - - 1.0.0-alpha03

Declaring dependencies

To add a dependency on TextClassifier, 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:

dependencies {
    implementation "androidx.textclassifier:textclassifier:1.0.0-alpha03"

For more information about dependencies, see Add build dependencies.

Version 1.0.0

TextClassifier Version 1.0.0-alpha03

January 22, 2020

androidx.textclassifier:textclassifier:1.0.0-alpha03 is released. Version 1.0.0-alpha03 contains these commits.

New features

API changes

  • setIncludeDefaultEntityTypes has been renamed to includeTypesFromTextClassifier
  • setIncludedEntityTypes has been renamed to setIncludedTypes
  • setExcludedEntityTypes has been renamed to setExcludedTypes

Bug fixes

Version 1.0.0-alpha02

February 7, 2019

androidx.textclassifier 1.0.0-alpha02 is released.

API changes

  • TextLinks.TextLink.getEntityType replaces TextLinks.TextLink.getEntity
  • TextLinks.TextLink.getEntityTypeCount replaces TextLinks.TextLink.getEntityCount
  • TextSelection.getEntityType replaces TextSelection.getEntity
  • TextSelection.getEntityTypeCount replaces `TextSelection.getEntityCount

Bug fixes

  • Fix a memory leak issue in AndroidX TextClassificationManager. (aosp/887354)
  • Floating Toolbar: Handle TextView position changes. (aosp/877713)

Version 1.0.0-alpha01

December 3, 2018

This is the first refactoring of TextClassifier to androidx. This release backports (android.view.textclassifier.TextClassifier)[/reference/android/view/textclassifier/TextClassifier] features, particularly Smart Linkify, back to API 14.