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

Object
clone()
boolean
equals(Object arg0)
void
finalize()
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

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 ()

Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.

Updated Feb 20, 2025

Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.

Updated Feb 20, 2025

Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.

Updated Jan 23, 2024