Class TranslationsController.SessionTranslation.DetectedLanguages

Object
org.mozilla.geckoview.TranslationsController.SessionTranslation.DetectedLanguages
Enclosing class:
TranslationsController.SessionTranslation

public static class TranslationsController.SessionTranslation.DetectedLanguages extends Object
DetectedLanguages is information that was detected about the page or user preferences.
  • Field Details

    • userLangTag

      @Nullable public final String userLangTag
      The user's preferred language tag
    • isDocLangTagSupported

      @NonNull public final Boolean isDocLangTagSupported
      If the engine supports the document language.
    • docLangTag

      @Nullable public final String 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 tag
      isDocLangTagSupported - - if the engine supports the document language for translation
      docLangTag - - the document's detected language tag
  • Method Details