[android-components](../index.md) / [mozilla.components.browser.session.ext](index.md) / [toCustomTabSessionState](./to-custom-tab-session-state.md)

# toCustomTabSessionState

`fun `[`Session`](../mozilla.components.browser.session/-session/index.md)`.toCustomTabSessionState(): `[`CustomTabSessionState`](../mozilla.components.browser.state.state/-custom-tab-session-state/index.md) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/browser/session/src/main/java/mozilla/components/browser/session/ext/SessionExtensions.kt#L23)

Creates a matching [CustomTabSessionState](../mozilla.components.browser.state.state/-custom-tab-session-state/index.md) from a [Session](../mozilla.components.browser.session/-session/index.md)

