public final class ExtrasUtils


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

Summary

Public methods

static @Nullable Locale

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

Public methods

getTopLanguage

public static @Nullable Locale getTopLanguage(@Nullable 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
@Nullable Intent intent

the intent used to start the activity.

See also
getIntent