CoreSDKParameters
Configuration parameters for a core SDK session.
Overview
Pass a CoreSDKParameters to configure(). It names your site and where its panel config is
served from, optionally narrowed to a page or to the events already playing. Only siteId and configBaseUrl are
required.
Syntax
data class CoreSDKParameters(
val siteId: String,
val configBaseUrl: String,
val pageConfigBaseUrl: String = configBaseUrl,
val whatJustHappenedBaseUrl: String = configBaseUrl,
val analyticsUrl: String? = null,
val pageId: String? = null,
val metadataValues: List<String> = emptyList(),
val appPackageVersion: String? = null,
val isProduction: Boolean = true,
val showHelloWorld: Boolean = false,
val costreamConfig: CostreamConfig? = null,
val userAgent: String = "ATV",
val pollingPauseAfterHidden: Duration = 10.minutes,
val configPollingMaxDuration: Duration = 2.hours,
)
Properties
| Property | Type | Description |
|---|---|---|
siteId | String | Your Maestro site ID |
configBaseUrl | String | Base URL the panel config is served from |
pageConfigBaseUrl | String | Base URL for page config. Defaults to configBaseUrl. |
whatJustHappenedBaseUrl | String | Base URL for What Just Happened data. Defaults to configBaseUrl. |
analyticsUrl | String? | Overrides the analytics endpoint. Defaults to null, the standard endpoint. |
pageId | String? | Narrows the config to one page. Defaults to null. |
metadataValues | List<String> | Identifiers of the events already playing at launch. Defaults to an empty list; update them later with onEventDataUpdated(). |
appPackageVersion | String? | Your app's version, reported with analytics. Defaults to null. |
isProduction | Boolean | True for the production environment; false for development. Defaults to true. |
showHelloWorld | Boolean | True to report the hello world panel as available, in panelAvailability and rendered:channels, when the page config enables no panels; false otherwise. MaestroCorePanel shows hello world in that case either way. Defaults to false. |
costreamConfig | CostreamConfig? | Co-streaming setup (apiKey, eventId), an opt-in API marked @OptInModuleApi. Defaults to null. |
userAgent | String | The user agent on the SDK's requests and analytics. Defaults to "ATV". |
pollingPauseAfterHidden | Duration | How long the panel stays hidden before config polling pauses. Defaults to 10 minutes. |
configPollingMaxDuration | Duration | The longest config polling runs in one stretch; it starts again when the panel shows again or the events change. Defaults to 2 hours. |
Example
val params = CoreSDKParameters(
siteId = "your-site-id",
pageId = "your-page-id",
configBaseUrl = "https://static.gcp.maestro.io",
)