Name Description Size Coverage
DownloadIndicator.kt Animation duration in milliseconds. If it is set to a low number, the speed of the rotation will be higher. 6170 -
preferences -
settings -
TranslationOptionsDialog.kt Firefox Translation options bottom sheet dialog. @param translationOptionsList A list of [TranslationSwitchItem]s to display. @param showGlobalSettings Whether to show to global settings entry point or not. @param pageSettingsError Could not load page settings error. @param onBackClicked Invoked when the user clicks on the back button. @param onTranslationSettingsClicked Invoked when the user clicks on the "Translation Settings" button. @param aboutTranslationClicked Invoked when the user clicks on the "About Translation" button. 9383 -
TranslationsAIControllableFeature.kt The definition of the translation feature for use in AI Controls. 1832 -
TranslationsAIControllableFeatureRegistrar.kt A class to handle dynamic registration of the [TranslationsAIControllableFeature] after [mozilla.components.browser.state.state.TranslationsBrowserState.isEngineSupported] becomes known. 2304 -
TranslationsAnimations.kt 2558 -
TranslationsBottomSheet.kt 7799 -
TranslationsDialogBinding.kt Helper for observing Translation state from both [BrowserState.translationEngine] and [SessionState.translationsState]. 10838 -
TranslationsDialogBottomSheet.kt Firefox Translations bottom sheet dialog. @param translationsDialogState The current state of the Translations bottom sheet dialog. @param learnMoreUrl The learn more link for translations website. @param showPageSettings Whether the entry point to page settings should be shown or not. @param showFirstTimeFlow Whether translations first flow should be shown. @param onSettingClicked Invoked when the user clicks on the settings button. @param onLearnMoreClicked Invoked when the user clicks on the "Learn More" button. @param onPositiveButtonClicked Invoked when the user clicks on the positive button. @param onNegativeButtonClicked Invoked when the user clicks on the negative button. @param onFromDropdownSelected Invoked when the user selects an item on the from dropdown. @param onToDropdownSelected Invoked when the user selects an item on the to dropdown. 29375 -
TranslationsDialogFragment.kt The enum is to know what bottom sheet to open. 20026 -
TranslationsDialogMiddleware.kt [Middleware] implementation for updating [BrowserStore] based on translation actions. 6560 -
TranslationsDialogStore.kt The [TranslationsDialogStore] holds the [TranslationsDialogState] (state tree). The only way to change the [TranslationsDialogState] inside [TranslationsDialogStore] is to dispatch an [Action] on it. 12257 -
TranslationsEnabledSettings.kt Interface defining cached properties that controlled the enabled state of translations. 2311 -
TranslationsFlowState.kt Convenience method to create a named pair for the translations flow. @property sessionState The session or tab state. @property browserState The browser or global state. 669 -
TranslationSwitchItem.kt TranslationSwitchItem that will appear on Translation screens. @property type [TranslationSettingsOption] type depending on the screen. In [TranslationOptionsDialog] is TranslationPageSettingsOption and in [org.mozilla.fenix.translations.settings.TranslationSettings] is [TranslationSettingsScreenOption]. @property textLabel The text that will appear on the switch item. @property isChecked Whether the switch is checked or not. @property isEnabled Whether the switch is enabled or not. @property onStateChange Invoked when the switch item is clicked, the new checked state is passed into the callback. 3596 -
TranslationToolbar.kt A translation toolbar for browsers. @param label Translation toolbar label that is displayed when the current page has been translated by the translation feature. @param onExpand Invoked when user wants to expand the translations controls.. @param onClose Invoked when user wants to close the translation toolbar. 3949 -