[android-components](../../index.md) / [mozilla.components.feature.tabs.tabstray](../index.md) / [TabsTrayInteractor](index.md) / [onTabSelected](./on-tab-selected.md)

# onTabSelected

`fun onTabSelected(session: `[`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/tabs/src/main/java/mozilla/components/feature/tabs/tabstray/TabsTrayInteractor.kt#L30)

Overrides [Observer.onTabSelected](../../mozilla.components.concept.tabstray/-tabs-tray/-observer/on-tab-selected.md)

A new tab has been selected.

