Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32e50fca authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Adds extra bundle key to TextClassifier to return package name" into main

parents aeaf6d42 dc8e7fc3
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -239,6 +239,16 @@ public interface TextClassifier {
    @FlaggedApi(Flags.FLAG_TEXT_CLASSIFIER_CHOICE_API_ENABLED)
    String EXTRA_TEXT_ORIGIN_PACKAGE = "android.view.textclassifier.extra.TEXT_ORIGIN_PACKAGE";

    /**
     * Extra specifying the package name of the app whose SMS retriever hash matches.
     *
     * This extra is included in the response when {@link #TYPE_SMS_RETRIEVER_OTP} is detected
     * in the request.
     *
     * @hide
     */
    String EXTRA_SMS_RETRIEVER_HASH_MATCHED_PACKAGE = "sms-retriever-hash-matched-package";

    /**
     * Returns suggested text selection start and end indices, recognized entity types, and their
     * associated confidence scores. The entity types are ordered from highest to lowest scoring.