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

# persist

`@Synchronized fun persist(engine: Engine, snapshot: SessionsSnapshot): Boolean` (source)

Overrides SessionStorage.persist

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.