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

Package mozilla.components.browser.state.selector

Properties

Name Summary
normalTabs val BrowserState.normalTabs: List<TabSessionState>
List of normal (non-private) tabs.
privateTabs val BrowserState.privateTabs: List<TabSessionState>
List of private tabs.
selectedTab val BrowserState.selectedTab: TabSessionState?
The currently selected tab if there’s one.

Functions

Name Summary
findCustomTab fun BrowserState.findCustomTab(tabId: String): CustomTabSessionState?
Finds and returns the Custom Tab with the given id. Returns null if no matching tab could be found.
findCustomTabOrSelectedTab fun BrowserState.findCustomTabOrSelectedTab(customTabId: String? = null): SessionState?
Finds and returns the tab with the given id or the selected tab if no id was provided (null). Returns null if no matching tab could be found or if no selected tab exists.
findTab fun BrowserState.findTab(tabId: String): TabSessionState?
Finds and returns the tab with the given id. Returns null if no matching tab could be found.