Name Description Size
DownloadIndicator.kt Animation duration in milliseconds. If it is set to a low number, the speed of the rotation will be higher. 7336
preferences
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. 9440
TranslationsAnimations.kt 2536
TranslationsBottomSheet.kt 7694
TranslationsDialogBinding.kt Helper for observing Translation state from both [BrowserState.translationEngine] and [TabSessionState.translationsState]. 10934
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. 28798
TranslationsDialogFragment.kt The enum is to know what bottom sheet to open. 20600
TranslationsDialogMiddleware.kt [Middleware] implementation for updating [BrowserStore] based on translation actions. 6220
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. 12404
TranslationSettings.kt Translation Settings Fragment. @param translationSwitchList list of [TranslationSwitchItem]s to display. @param showAutomaticTranslations Show the entry point for the user to change automatic language settings. @param showNeverTranslate Show the entry point for the user to change never translate settings. @param showDownloads Show the entry point for the user to manage language models. @param pageSettingsError Could not load page settings error. @param onAutomaticTranslationClicked Invoked when the user clicks on the "Automatic Translation" button. @param onNeverTranslationClicked Invoked when the user clicks on the "Never Translation" button. @param onDownloadLanguageClicked Invoked when the user clicks on the "Download Language" button. 8533
TranslationSettingsFragment.kt A fragment displaying the Firefox Translation settings screen. 6701
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 [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. 3543
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. 3586