android-components / mozilla.components.browser.session.storage / DefaultSessionStorage / read

read

@Synchronized fun read(engine: Engine): SessionsSnapshot? (source)

Overrides SessionStorage.read

Returns the latest persisted sessions snapshot that may be used to read sessions. Resulting SessionsSnapshot may be restored via SessionManager.restore.

Parameters

engine - the engine for which to read the snapshot.

Return
snapshot of sessions to read, or null if it's empty or couldn't be read.