Class TranslationsController.SessionTranslation.TranslationPair

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

public static class TranslationsController.SessionTranslation.TranslationPair extends Object
Translation pair is the from language and to language set on the translation state.
  • Field Details

    • fromLanguage

      @Nullable public final String fromLanguage
      Language the page is translated from originally.
    • toLanguage

      @Nullable public final String toLanguage
      Language the page is translated to.
  • Constructor Details

    • TranslationPair

      public TranslationPair(@Nullable String fromLanguage, @Nullable String toLanguage)
      Requested translation pair constructor.
      Parameters:
      fromLanguage - original language of page (detected or specified)
      toLanguage - translated to language of page (detected or specified)
  • Method Details