Textclassifier

Latest Update Current Stable Release Next Release Candidate Beta Release Alpha Release
February 7, 2019 - - - 1.0.0-alpha02

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-alpha02"
}

For more information about dependencies, see Add build dependencies.

Version 1.0.0

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.