FirebaseTranslatorOptions

public class FirebaseTranslatorOptions extends Object

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

Options for FirebaseTranslator

Nested Class Summary

Public Method Summary

boolean
int
String
getSourceLanguageCode()
Returns BCP-47 language code for the language to translate from.
int
String
getTargetLanguageCode()
Returns BCP-47 language tag for the language to translate to.
int

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

Returns the FirebaseTranslateLanguage.TranslateLanguage to translate from.

public String getSourceLanguageCode ()

Returns BCP-47 language code for the language to translate from.

public int getTargetLanguage ()

Returns the FirebaseTranslateLanguage.TranslateLanguage to translate to.

public String getTargetLanguageCode ()

Returns BCP-47 language tag for the language to translate to.

public int hashCode ()

ML Kit for Firebase provided ready-to-use ML solutions for app developers. New apps should use the standalone ML Kit library for on-device ML and Firebase ML for cloud-based ML.

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 Nov 1, 2024

ML Kit for Firebase provided ready-to-use ML solutions for app developers. New apps should use the standalone ML Kit library for on-device ML and Firebase ML for cloud-based ML.

Updated Feb 21, 2025