Skip to main content

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 like didShowPanel() and didHidePanel() allow you to notify the SDK when the panel's visibility changes, enabling proper state management and analytics tracking.
  • State Access:
    Methods like getCurrentEventID() and getPlayerTimeCode() provide access to the current state of the event, allowing your application to make informed decisions.
  • Focus Management:
    The startFocusManagement() 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.

MethodDescription
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.

MethodDescription
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.