android-components / mozilla.components.browser.session.storage / SessionStorage

SessionStorage

interface SessionStorage (source)

Storage component for browser and engine sessions.

Functions

persist

abstract fun persist(sessionManager: SessionManager): Boolean

Persists the session state of the provided SessionManager.

restore

abstract fun restore(sessionManager: SessionManager): Boolean

Restores the session state by reading from the latest persisted version.

start

abstract fun start(sessionManager: SessionManager): Unit

Starts persisting the state frequently and automatically.

stop

abstract fun stop(): Unit

Stops persisting the state automatically.

Inheritors

DefaultSessionStorage

class DefaultSessionStorage : SessionStorage

Default implementation of SessionStorage which persists browser and engine session states to a JSON file.