ExtrasUtils

class ExtrasUtils
kotlin.Any
   ↳ androidx.textclassifier.ExtrasUtils

Utilities for inserting/retrieving data into/from textclassifier related results and intents.

Summary

Public methods
static Locale?
getTopLanguage(@Nullable intent: Intent?)

Returns the highest scoring language found in the textclassifier extras in the intent.

Public methods

getTopLanguage

@Nullable static fun getTopLanguage(@Nullable intent: Intent?): Locale?

Returns the highest scoring language found in the textclassifier extras in the intent. This may return null if the data could not be found.

Parameters
intent Intent?: the intent used to start the activity.