Package org.mozilla.geckoview
Class TranslationsController.SessionTranslation.TranslationState
Object
org.mozilla.geckoview.TranslationsController.SessionTranslation.TranslationState
- Enclosing class:
- TranslationsController.SessionTranslation
The representation of the translation state.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTranslationState
(TranslationsController.SessionTranslation.TranslationPair requestedTranslationPair, String error, TranslationsController.SessionTranslation.DetectedLanguages detectedLanguages, Boolean isEngineReady) Translation State constructor. -
Method Summary
-
Field Details
-
requestedTranslationPair
@Nullable public final TranslationsController.SessionTranslation.TranslationPair requestedTranslationPairThe language pair to translate. -
error
If an error state occurred. -
detectedLanguages
@Nullable public final TranslationsController.SessionTranslation.DetectedLanguages detectedLanguagesDetected information about preferences and page information. -
isEngineReady
If the translation engine is ready for use or will need to be loaded.
-
-
Constructor Details
-
TranslationState
public TranslationState(@Nullable TranslationsController.SessionTranslation.TranslationPair requestedTranslationPair, @Nullable String error, @Nullable TranslationsController.SessionTranslation.DetectedLanguages detectedLanguages, @NonNull Boolean isEngineReady) Translation State constructor.- Parameters:
requestedTranslationPair
- the language pair to translateerror
- if an error occurreddetectedLanguages
- detected languageisEngineReady
- if the engine is ready for translations
-
-
Method Details