BrowserModeStateHolder

Source of truth for the user's currently-active BrowserMode. The current value is used when creating new tabs and display the correct UI state.

Properties

Link copied to clipboard
abstract val currentMode: StateFlow<BrowserMode>

Returns current BrowserMode.

Functions

Link copied to clipboard
abstract fun switchTo(mode: BrowserMode)

Sets the active BrowserMode. Used when user explicitly changes the mode or automatically when a mode change is required for opening a link.