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": Int, "selectedSessionIndex": Int, "sessionStateTuples": {session{},engineSession{}},... }