[android-components](../../index.md) / [mozilla.components.feature.tab.collections](../index.md) / [TabCollectionStorage](index.md) / [addTabsToCollection](./add-tabs-to-collection.md)

# addTabsToCollection

`fun addTabsToCollection(collection: `[`TabCollection`](../-tab-collection/index.md)`, sessions: `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[`Session`](../../mozilla.components.browser.session/-session/index.md)`>): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/feature/tab-collections/src/main/java/mozilla/components/feature/tab/collections/TabCollectionStorage.kt#L51)

Adds the state of the given [Session](../../mozilla.components.browser.session/-session/index.md)s to the [TabCollection](../-tab-collection/index.md).

