class SessionStorage
(source)
Session storage for persisting the state of a SessionManager to disk (browser and engine session states).
SessionStorage(context: Context, engine: Engine)
Session storage for persisting the state of a SessionManager to disk (browser and engine session states). |
fun autoSave(sessionManager: SessionManager, interval: Long = DEFAULT_INTERVAL_MILLISECONDS, unit: TimeUnit = TimeUnit.MILLISECONDS): AutoSave
Starts configuring automatic saving of the state. |
|
fun clear(): Unit
Clears the state saved on disk. |
|
fun restore(): Snapshot?
Reads the saved state from disk. Returns null if no state was found on disk or if reading the file failed. |
|
fun save(snapshot: Snapshot): Boolean
Saves the given state to disk. |