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

restoreSubset

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

Restores a subset of the 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.