Package org.mozilla.geckoview
Class TranslationsController.SessionTranslation.TranslationOptions
Object
org.mozilla.geckoview.TranslationsController.SessionTranslation.TranslationOptions
- Enclosing class:
- TranslationsController.SessionTranslation
@AnyThread
public static class TranslationsController.SessionTranslation.TranslationOptions
extends Object
Options available for translating.
Options (default):
downloadModel (true) - Downloads any models automatically that are needed for translation.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder for making translation options. -
Field Summary
Modifier and TypeFieldDescriptionfinal boolean
If the model should be automatically downloaded or stopped. -
Constructor Summary
ModifierConstructorDescriptionprotected
Options for translation. -
Method Summary
-
Field Details
-
downloadModel
@NonNull public final boolean downloadModelIf the model should be automatically downloaded or stopped.
-
-
Constructor Details
-
TranslationOptions
protected TranslationOptions(@NonNull TranslationsController.SessionTranslation.TranslationOptions.Builder builder) Options for translation.- Parameters:
builder
- that populated the translation options
-