FirebaseTranslatorOptions.Builder

public static class FirebaseTranslatorOptions.Builder extends Object

Builder to create a FirebaseTranslatorOptions instance.

Public Constructor Summary

Public Method Summary

FirebaseTranslatorOptions
build()
Creates a new FirebaseTranslatorOptions instance.
FirebaseTranslatorOptions.Builder
setSourceLanguage(int sourceLanguage)
Sets the language to translate from.
FirebaseTranslatorOptions.Builder
setTargetLanguage(int targetLanguage)
Sets the language to translate to.

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 Constructors

public FirebaseTranslatorOptions.Builder ()

Public Methods

public FirebaseTranslatorOptions build ()

Creates a new FirebaseTranslatorOptions instance. The source and target language should be set before calling this method.

public FirebaseTranslatorOptions.Builder setSourceLanguage (int sourceLanguage)

Sets the language to translate from.

Parameters
sourceLanguage the FirebaseTranslateLanguage.TranslateLanguage to translate from.
Returns
  • This object, for chaining method calls.

public FirebaseTranslatorOptions.Builder setTargetLanguage (int targetLanguage)

Sets the language to translate to.

Parameters
targetLanguage the FirebaseTranslateLanguage.TranslateLanguage to translate to.
Returns
  • This object, for chaining method calls.

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

Updated Mar 24, 2022

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

Updated Mar 24, 2022

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

Updated Mar 24, 2022