1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 package org.mozilla.fenix.components.menu.store
7 import mozilla.components.lib.state.Action
10 * Actions to dispatch through the [MenuStore] to modify the [MenuState].
12 sealed class MenuAction : Action {
15 * Updates whether or not the current selected tab is bookmarked.
17 * @property isBookmarked Whether or not the current selected is bookmarked.
19 data class UpdateBookmarked(val isBookmarked: Boolean) : MenuAction()
22 * [MenuAction] dispatched when a navigation event occurs for a specific destination.
24 sealed class Navigate : MenuAction() {
27 * [Navigate] action dispatched when navigating to the settings.
29 data object Settings : Navigate()