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

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.