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
Modifier and TypeFieldDescriptionDetected information about preferences and page information.final String
If an error state occurred.final Boolean
If the DOM has began visibly changing to the translated text.final Boolean
If the translation engine is ready for use or will need to be loaded.The language pair to translate. -
Constructor Summary
ConstructorDescriptionTranslationState
(TranslationsController.SessionTranslation.TranslationPair requestedTranslationPair, String error, TranslationsController.SessionTranslation.DetectedLanguages detectedLanguages, Boolean isEngineReady, Boolean hasVisibleChange) 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. -
hasVisibleChange
If the DOM has began visibly changing to the translated text.
-
-
Constructor Details
-
TranslationState
public TranslationState(@Nullable TranslationsController.SessionTranslation.TranslationPair requestedTranslationPair, @Nullable String error, @Nullable TranslationsController.SessionTranslation.DetectedLanguages detectedLanguages, @NonNull Boolean isEngineReady, @NonNull Boolean hasVisibleChange) Translation State constructor.- Parameters:
requestedTranslationPair
- the language pair to translateerror
- if an error occurreddetectedLanguages
- detected languageisEngineReady
- if the engine is ready for translationshasVisibleChange
- if the DOM has began to visibly change to translated text
-
-
Method Details