Google is committed to advancing racial equity for Black communities. See how.

IdentifiedLanguage

public final class IdentifiedLanguage extends Object

This class is deprecated.
The standalone ML Kit SDK replaces this API. For more information, refer to the migration guide.

A language identified by identifyPossibleLanguages(String).

Public Method Summary

boolean
float
getConfidence()
Returns the confidence score associated with the language.
String
getLanguageCode()
Returns the BCP-47 language code for the language.
int
String

Inherited Method Summary

Public Methods

public boolean equals (Object o)

public float getConfidence ()

Returns the confidence score associated with the language. The value is between 0 and 1, and greater or equal to the confidence threshold specified for identifyPossibleLanguages(String) in FirebaseLanguageIdentificationOptions.

public String getLanguageCode ()

Returns the BCP-47 language code for the language.

See Also

public int hashCode ()

public String toString ()