Package org.mozilla.geckoview
Class TranslationsController.SessionTranslation.TranslationOptions.Builder
Object
org.mozilla.geckoview.TranslationsController.SessionTranslation.TranslationOptions.Builder
- Enclosing class:
- TranslationsController.SessionTranslation.TranslationOptions
@AnyThread
public static class TranslationsController.SessionTranslation.TranslationOptions.Builder
extends Object
Builder for making translation options.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Final call to build the specified options.downloadModel
(boolean downloadModel) Build setter for the option for downloading a model.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
downloadModel
@NonNull public TranslationsController.SessionTranslation.TranslationOptions.Builder downloadModel(@NonNull boolean downloadModel) Build setter for the option for downloading a model.- Parameters:
downloadModel
- should the model be automatically download or not- Returns:
- the model to download for the translation options
-
build
Final call to build the specified options.- Returns:
- a constructed translation options
-