Skip to main content

SDK Instance

Introduction

The MaestroSDKInstance class represents a single initialized Maestro SDK session. It is returned by the configure call from the MaestroManager and provides methods for managing the SDK lifecycle and notifying the SDK of application events.

Instance Methods

MethodDescription
setDataToPanel()Set custom data to a panel - mostly for debugging/testing purposes
onEventDataUpdated()Notifies SDK about new event state
updateConfig()Updates user-specific SDK configuration
onPlayerTimecodeUpdated()Notifies SDK of play-head time-code updates
detach()Detaches SDK and stops all work

Example Usage

// Configure SDK to get instance
val sdk = MaestroManager.configure(
context = applicationContext,
maestroEventDelegate = this,
params = MaestroSDKParameters(siteId = "your-site-id"),
)

// Use instance methods
sdk.onEventDataUpdated(eventData)
sdk.onPlayerTimecodeUpdated(currentTimeMillis)
sdk.detach()