[android-components](../../index.md) / [mozilla.components.browser.engine.gecko](../index.md) / [GeckoEngine](index.md) / [speculativeCreateSession](./speculative-create-session.md)

# speculativeCreateSession

`fun speculativeCreateSession(private: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`, contextId: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/browser/engine-gecko-beta/src/main/java/mozilla/components/browser/engine/gecko/GeckoEngine.kt#L177)

Overrides [Engine.speculativeCreateSession](../../mozilla.components.concept.engine/-engine/speculative-create-session.md)

See [Engine.speculativeCreateSession](../../mozilla.components.concept.engine/-engine/speculative-create-session.md).

