[android-components](../index.md) / [mozilla.components.feature.tab.collections.ext](./index.md)

## Package mozilla.components.feature.tab.collections.ext

### Functions

| Name | Summary |
|---|---|
| [restore](restore.md) | `fun `[`SessionManager`](../mozilla.components.browser.session/-session-manager/index.md)`.restore(context: <ERROR CLASS>, engine: `[`Engine`](../mozilla.components.concept.engine/-engine/index.md)`, tab: `[`Tab`](../mozilla.components.feature.tab.collections/-tab/index.md)`, onTabRestored: () -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`, onFailure: () -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)<br>Restores the given [Tab](../mozilla.components.feature.tab.collections/-tab/index.md) from a [TabCollection](../mozilla.components.feature.tab.collections/-tab-collection/index.md). Will invoke [onTabRestored](restore.md#mozilla.components.feature.tab.collections.ext$restore(mozilla.components.browser.session.SessionManager, , mozilla.components.concept.engine.Engine, mozilla.components.feature.tab.collections.Tab, kotlin.Function0((kotlin.Unit)), kotlin.Function0((kotlin.Unit)))/onTabRestored) on successful restore and [onFailure](restore.md#mozilla.components.feature.tab.collections.ext$restore(mozilla.components.browser.session.SessionManager, , mozilla.components.concept.engine.Engine, mozilla.components.feature.tab.collections.Tab, kotlin.Function0((kotlin.Unit)), kotlin.Function0((kotlin.Unit)))/onFailure) otherwise.`fun `[`SessionManager`](../mozilla.components.browser.session/-session-manager/index.md)`.restore(context: <ERROR CLASS>, engine: `[`Engine`](../mozilla.components.concept.engine/-engine/index.md)`, collection: `[`TabCollection`](../mozilla.components.feature.tab.collections/-tab-collection/index.md)`, onFailure: (`[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`) -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)<br>Restores the given [TabCollection](../mozilla.components.feature.tab.collections/-tab-collection/index.md). Will invoke [onFailure](restore.md#mozilla.components.feature.tab.collections.ext$restore(mozilla.components.browser.session.SessionManager, , mozilla.components.concept.engine.Engine, mozilla.components.feature.tab.collections.TabCollection, kotlin.Function1((kotlin.String, kotlin.Unit)))/onFailure) if restoring a single [Tab](../mozilla.components.feature.tab.collections/-tab/index.md) of the collection failed. The URL of the tab will be passed to [onFailure](restore.md#mozilla.components.feature.tab.collections.ext$restore(mozilla.components.browser.session.SessionManager, , mozilla.components.concept.engine.Engine, mozilla.components.feature.tab.collections.TabCollection, kotlin.Function1((kotlin.String, kotlin.Unit)))/onFailure). |
