Skip to main content

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/MethodDescription
customExceptionHandlerCustom error handler for SDK-reported errors
breadcrumbHandlerCustom breadcrumb handler for SDK events
sdkInfoSDK debug information including version
configure()Initializes a new SDK instance

Data Classes

ClassDescription
MaestroSDKParametersConfiguration parameters for SDK initialization
MaestroSDKMetadataPlatform metadata for SDK configuration
MaestroEventDataEvent 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()