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

TabCollection

interface TabCollection (source)

A collection of tabs.

Properties

Name Summary
id abstract val id: Long
Unique ID of this tab collection.
tabs abstract val tabs: List<Tab>
List of tabs in this tab collection.
title abstract val title: String
Title of this tab collection.

Functions

Name Summary
restore abstract fun restore(context: <ERROR CLASS>, engine: Engine, restoreSessionId: Boolean = false): List<Session>
Restores all tabs in this collection and returns a matching list of Session objects.
restoreSubset abstract fun restoreSubset(context: <ERROR CLASS>, engine: Engine, tabs: List<Tab>, restoreSessionId: Boolean = false): List<Session>
Restores a subset of the tabs in this collection and returns a matching list of Session objects.