android-components / mozilla.components.browser.engine.gecko / GeckoEngineSessionState / toJSON

toJSON

fun toJSON(): <ERROR CLASS> (source)

Overrides EngineSessionState.toJSON

Create a JSON representation of this state that can be saved to disk.

When reading JSON from disk Engine.createSessionState can be used to turn it back into an EngineSessionState instance.