android-components / mozilla.components.browser.state.state

Package mozilla.components.browser.state.state

Types

Name Summary
BrowserState data class BrowserState : State
Value type that represents the complete state of the browser/engine.
ContentState data class ContentState
Value type that represents the state of the content within a SessionState.
CustomTabActionButtonConfig data class CustomTabActionButtonConfig
CustomTabConfig data class CustomTabConfig
Holds configuration data for a Custom Tab.
CustomTabMenuItem data class CustomTabMenuItem
CustomTabSessionState data class CustomTabSessionState : SessionState
Value type that represents the state of a Custom Tab.
EngineState data class EngineState
Value type that holds the browser engine state of a session.
ExternalAppType enum class ExternalAppType
Represents different contexts that a custom tab session can be displayed in.
MediaState data class MediaState
Value type that represents the state of the media elements and playback states.
ReaderState data class ReaderState
Value type that represents the state of reader mode/view.
SecurityInfoState data class SecurityInfoState
A value type holding security information for a Session.
SessionState interface SessionState
Interface for states that contain a ContentState and can be accessed via an id.
TabSessionState data class TabSessionState : SessionState
Value type that represents the state of a tab (private or normal).
TrackingProtectionState data class TrackingProtectionState
Value type that represents the state of tracking protection within a SessionState.
WebExtensionState data class WebExtensionState
Value type that represents the state of a web extension.

Functions

Name Summary
createCustomTab fun createCustomTab(url: String, id: String = UUID.randomUUID().toString(), config: CustomTabConfig = CustomTabConfig(), contextId: String? = null): CustomTabSessionState
Convenient function for creating a custom tab.
createTab fun createTab(url: String, private: Boolean = false, id: String = UUID.randomUUID().toString(), parent: TabSessionState? = null, extensions: Map<String, WebExtensionState> = emptyMap(), readerState: ReaderState = ReaderState(), title: String = "", thumbnail: <ERROR CLASS>? = null, contextId: String? = null): TabSessionState
Convenient function for creating a tab.