API Reference
Overview
This API Reference covers the core SDK for an app that uses Maestro without a client SDK. You start a session with
MaestroCoreSDK.configure(), get back a CoreMaestroSDK.Instance, and pass that session to the composables.
| Package | Types |
|---|---|
com.maestro.uitoolkit.core | MaestroCoreSDK, MaestroCorePanel, MaestroCoreOverlays, MaestroCoreOverlayView, MaestroHelloWorldPanel, MaestroCoreTheme |
com.maestro.uitoolkit.theme | MaestroThemeData |
com.lessthan3.maestropanel.shared.core.sdk | CoreMaestroSDK, CoreSDKParameters, CoreEventDelegate, CoreDebugInterface |
com.lessthan3.maestropanel.shared.core.state | PanelAvailability, PanelEvent, RenderedChannels |
com.lessthan3.maestropanel.shared.panelconfig | PanelTypeId |
com.lessthan3.maestropanel.shared.panelconfig.model | PanelData |
com.lessthan3.maestropanel.shared.analytics | DeviceOrientation |
com.lessthan3.maestropanel.shared.feature.wjh | WjhModuleFact, WhatJustHappenedDisplay |
com.lessthan3.maestropanel.shared.feature.costream | CostreamConfig |
com.lessthan3.maestropanel.shared.feature.overlays | CoreOverlay, OverlayPosition |
Core SDK
| Method | Description |
|---|---|
| configure() | Starts a new core SDK session |
Session
Members of the CoreMaestroSDK.Instance that configure() returns.
| Member | Description |
|---|---|
| onEventDataUpdated() | Fetches the panel config for the current events |
| onPlayerTimecodeUpdated() | Reports where the player's play-head is |
| didShowPanel() | Marks the panel visible and selects a tab |
| didHidePanel() | Marks the panel hidden |
| panelAvailability | Emits whether the session has panels to show |
| selectedPanel | Emits the panel type of the selected tab |
| selectPanelIfEnabled() | Selects a tab if the page has it |
| setHostInput() | Sets a named value a designed panel's fetch plan reads |
| overlays | Emits the current overlay, or null when there is none |
| dismissOverlay() | Dismisses the current overlay |
| resetContext() | Starts a new viewing context in the same session |
| detach() | Ends the session |
| debugInterface | Queues a test overlay |
Other session members:
| Member | Description |
|---|---|
selectedPanelData: StateFlow<PanelData?> | The selected tab's panel, with its id, name, type and config id |
enabledPanels: StateFlow<List<PanelData>> | The panels the page config enables, in tab order |
configPanelsUnsupported: StateFlow<Boolean?> | true when the page config enables no panels, null while it loads |
didShowPanel(panel: PanelData) | Same as didShowPanel(), selecting the tab for a panel from enabledPanels |
onOrientationChanged(orientation: DeviceOrientation) | Reports the screen orientation (PORTRAIT, LANDSCAPE) for analytics |
showWhatJustHappenedModule() / dismissWhatJustHappenedModule() | Shows or dismisses the What Just Happened module. The core SDK has no What Just Happened view on Android yet. |
Data Classes
| Class | Description |
|---|---|
| CoreOverlay | Describes the overlay the session is currently showing |
| CoreSDKParameters | Configuration parameters for a core SDK session |
| OverlayPosition | The screen position of an overlay |
Event Delegate
| Interface | Description |
|---|---|
| CoreEventDelegate | Callbacks from the SDK to your app |
UI
| Composable | Description |
|---|---|
| MaestroCoreOverlayView | Draws the current overlay, for a host that places it itself |
| MaestroCoreOverlays | Shows timecoded and broadcast overlays |
| MaestroCorePanel | Shows the panels the page config carries |
| MaestroHelloWorldPanel | Shows that the SDK is installed and running |