[android-components](../../../index.md) / [mozilla.components.browser.session.usecases](../../index.md) / [EngineSessionUseCases](../index.md) / [GetOrCreateUseCase](index.md) / [invoke](./invoke.md)

# invoke

`operator fun invoke(tabId: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`): `[`EngineSession`](../../../mozilla.components.concept.engine/-engine-session/index.md)`?` [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/browser/session/src/main/java/mozilla/components/browser/session/usecases/EngineSessionUseCases.kt#L28)

Gets the linked engine session for a tab or creates (and links) one if needed.

