android-components / mozilla.components.feature.tab.collections / TabCollection / restore

restore

abstract fun restore(context: <ERROR CLASS>, engine: Engine, restoreSessionId: Boolean = false): List<Session> (source)

Restores all tabs in this collection and returns a matching list of Session objects.

Parameters

restoreSessionId - If true the original Session.id of Sessions will be restored. Otherwise a new ID will be generated. An app may prefer to use a new ID if it expects sessions to get restored multiple times - otherwise breaking the promise of a unique ID per Session.