android-components / mozilla.components.browser.session.storage / DefaultSessionStorage / <init>

# <init>

`DefaultSessionStorage(context: Context, savePeriodically: Boolean = true, saveIntervalInSeconds: Long = 300, scheduler: ScheduledExecutorService = Executors.newSingleThreadScheduledExecutor())`

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

The JSON format used for persisting: { "version": version, "selectedSession": "session-uuid", "session-uuid": { "session": {} "engineSession": {} }, "session-uuid": { "session": {} "engineSession": {} } }