Maestro Event Interface
Introduction
The Maestro Event Interface (IMaestroEvent) defines a set of methods for interacting with the current event. These methods allow you to control panel visibility, manage playback, and access state information. The interface is implemented by the MaestroEventViewModel and is available after calling userDidStartWatchingEvent().
Key Responsibilities
The Maestro Event Interface creates a clear contract between your application and the SDK, enabling bidirectional communication for panel management, playback control, and state access. This interface is core to the SDK's functionality and is designed to work seamlessly with the Event Delegate implementation in your application.
- Panel Management:
Methods likedidShowPanel()anddidHidePanel()allow you to notify the SDK when the panel's visibility changes, enabling proper state management and analytics tracking.
- State Access:
Methods likegetCurrentEventID()andgetPlayerTimeCode()provide access to the current state of the event, allowing your application to make informed decisions.
- Focus Management:
ThestartFocusManagement()method helps manage focus transitions between the SDK UI and your application, ensuring a seamless navigation experience.
Methods
Panel Management
These methods allow you to manage the visibility and behavior of the Maestro panel.
| Method | Description |
|---|---|
| didHidePanel() | Indicates that the panel has been hidden from the user. |
| didShowPanel() | Indicates that the panel has been shown to the user. |
State Retrieval/Update
These methods allow you to access information about the current state of the event and key plays.
| Method | Description |
|---|---|
| getAvailablePanels() | Returns the panels the SDK can currently show, in tab order. |
| getCurrentEventID() | Returns the active event ID(s) for the current session (string, string[], or null). |
| getCurrentEventIDs() | Returns all active event IDs for the current session as string[]. |
| getPlayerTimeCode() | Retrieves the current player time code stored in the SDK. |
| isOverlayShowing() | Returns whether the Maestro overlay is currently visible. |
| setActivePanel() | Change the active panel. |
| setDataToOverlay(overlayData) | Passes positioning or display data to the Maestro overlay. |
| setDataToPanel() | Pushes external data into a specific panel. |
| startFocusManagement(params) | Hands focus from your application into the SDK panel UI. |
| updatePlayerTimeCode() | Updates the Player Time Code stored in the SDK. |
| updateUserSettings() | Update user settings in real-time. |