Core SDK
Introduction
The Core SDK provides the fundamental object and methods for initializing and configuring the Maestro Android SDK. MaestroManager is a singleton used for SDK initialization and configuration.
SDK Entry Point
import com.lessthan3.maestropanel.MaestroManager
Key Responsibilities
- SDK Configuration: The
configure()method initializes the SDK with your site ID, delegate, and parameters - Error Handling: Custom error and breadcrumb handlers for debugging
- Instance Management: Returns a single active SDK instance
Properties & Methods
| Property/Method | Description |
|---|---|
| customExceptionHandler | Custom error handler for SDK-reported errors |
| breadcrumbHandler | Custom breadcrumb handler for SDK events |
| sdkInfo | SDK debug information including version |
| configure() | Initializes a new SDK instance |
Data Classes
| Class | Description |
|---|---|
| MaestroSDKParameters | Configuration parameters for SDK initialization |
| MaestroSDKMetadata | Platform metadata for SDK configuration |
| MaestroEventData | Event data for live sports and broadcasts |
Example
// Configure the SDK
val sdk = MaestroManager.configure(
context = applicationContext,
maestroEventDelegate = this,
params = MaestroSDKParameters(
siteId = "your-site-id",
eventData = null,
),
)
// Use the instance to manage SDK lifecycle
sdk.onEventDataUpdated(eventData)
sdk.detach()