[android-components](../index.md) / [mozilla.components.browser.state.selector](index.md) / [findTabOrCustomTab](./find-tab-or-custom-tab.md)

# findTabOrCustomTab

`fun `[`BrowserState`](../mozilla.components.browser.state.state/-browser-state/index.md)`.findTabOrCustomTab(tabId: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`): `[`SessionState`](../mozilla.components.browser.state.state/-session-state/index.md)`?` [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/browser/state/src/main/java/mozilla/components/browser/state/selector/Selectors.kt#L47)

Finds and returns the [TabSessionState](../mozilla.components.browser.state.state/-tab-session-state/index.md) or [CustomTabSessionState](../mozilla.components.browser.state.state/-custom-tab-session-state/index.md) with the given [tabId](find-tab-or-custom-tab.md#mozilla.components.browser.state.selector$findTabOrCustomTab(mozilla.components.browser.state.state.BrowserState, kotlin.String)/tabId).

