Textclassifier

  
Identifies conversations, links, selections, and other similar constructs in text.
Latest Update Stable Release Release Candidate Beta Release Alpha Release
March 23, 2022 - - - 1.0.0-alpha04

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:

Groovy

dependencies {
    implementation "androidx.textclassifier:textclassifier:1.0.0-alpha04"
}

Kotlin

dependencies {
    implementation("androidx.textclassifier:textclassifier:1.0.0-alpha04")
}

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.0.0

Version 1.0.0-alpha04

March 23, 2022

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

API Changes

Bug Fixes

  • API lint check for MissingGetterMatchingBuilder is enabled for androidx (I4bbea, b/138602561)
  • AppCompatRatingBar PNG drawables have been replaced with vector sources. This may cause slight changes in the visual appearance of individual stars. (I6b99d)

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.