android-components / mozilla.components.concept.engine / EngineSessionState


interface EngineSessionState (source)

The state of an EngineSession. An instance can be obtained from EngineSession.saveState. Creating a new EngineSession and calling EngineSession.restoreState with the same state instance should restore the previous session.


Name Summary
toJSON abstract fun toJSON(): <ERROR CLASS>
Create a JSON representation of this state that can be saved to disk.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.


Name Summary
GeckoEngineSessionState class GeckoEngineSessionState : EngineSessionState
SystemEngineSessionState class SystemEngineSessionState : EngineSessionState