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

Package mozilla.components.browser.session.selector

Properties

Name Summary
selectedSessionState val BrowserState.selectedSessionState: SessionState?
The currently selected SessionState if there’s one.

Functions

Name Summary
findSession fun BrowserState.findSession(sessionId: String): SessionState?
Finds and returns the session with the given id. Returns null if no matching session could be found.
findSessionOrSelected fun BrowserState.findSessionOrSelected(sessionId: String? = null): SessionState?
Finds and returns the session with the given id or the selected session if no id was provided (null). Returns null if no matching session could be found or if no selected session exists.