Target filter
Search Kotlin docs
  • Back
  • Tealium Prism Kotlin SDK Reference
contextapi/com.tealium.prism.contextapi/ContextApi/fetchEngineResponse

fetchEngineResponse

abstract fun fetchEngineResponse(engineId: String): Single<TealiumResult<EngineResponse>>

Fetches visitor data from a configured Context API engine, for the current visitor id.

The result is a failure carrying:

  • ModuleNotEnabledException when the Context API module is not enabled, or when the VisitorId module is disabled, as fetching requires the visitor id

  • ModuleShutdownException when the Context API module is shut down before the request completes

  • Tealium.TealiumShutdownException, or the initialization failure, when the Tealium instance was shut down or failed to initialize

  • otherwise, the exception that stopped the request, such as a NetworkException or a ContextApiConfigurationException

Return

A Single that completes with the EngineResponse, or with one of the failures above

Parameters

engineId

The ID of the Context API engine to fetch data from; must not be empty, or the result is a failure carrying an IllegalArgumentException

Generated by Dokka
(c) Tealium 2026