Summary:
Methods
| Inherited Methods
ExtrasUtils
public
final
class
ExtrasUtils
extends Object
java.lang.Object | |
↳ | androidx.textclassifier.ExtrasUtils |
Utilities for inserting/retrieving data into/from textclassifier related results and intents.
Summary
Public methods | |
---|---|
static
Locale
|
getTopLanguage(Intent intent)
Returns the highest scoring language found in the textclassifier extras in the intent. |
Inherited methods | |
---|---|
Public methods
getTopLanguage
public static Locale getTopLanguage (Intent intent)
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. |
Returns | |
---|---|
Locale |
See also: