android-components / mozilla.components.browser.session.storage / SessionStorage / persist

persist

abstract fun persist(engine: Engine, snapshot: SessionsSnapshot): Boolean (source)

Persists the provided SessionsSnapshot for a given Engine. SessionsSnapshot may be obtained using SessionManager.createSnapshot. Throws if snapshot is empty or otherwise incoherent.

Parameters

engine - the engine in which context to persist a snapshot.

snapshot - the snapshot of snapshot which are to be persisted.

Return
true if the snapshot was persisted, otherwise false.