Package org.mozilla.geckoview
Class TranslationsController.SessionTranslation.DetectedLanguages
Object
org.mozilla.geckoview.TranslationsController.SessionTranslation.DetectedLanguages
- Enclosing class:
- TranslationsController.SessionTranslation
DetectedLanguages is information that was detected about the page or user preferences.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDetectedLanguages
(String userLangTag, Boolean isDocLangTagSupported, String docLangTag) DetectedLanguages constructor. -
Method Summary
-
Field Details
-
userLangTag
The user's preferred language tag -
isDocLangTagSupported
If the engine supports the document language. -
docLangTag
Detected language tag of page.
-
-
Constructor Details
-
DetectedLanguages
public DetectedLanguages(@Nullable String userLangTag, @NonNull Boolean isDocLangTagSupported, @Nullable String docLangTag) DetectedLanguages constructor.- Parameters:
userLangTag
- - the user's preferred language tagisDocLangTagSupported
- - if the engine supports the document language for translationdocLangTag
- - the document's detected language tag
-
-
Method Details