Skip to main content

User Settings

Overview

The User Settings feature allows client applications to customize the Maestro SDK behavior based on user preferences. This enables personalized experiences including panel hiding and feature disabling.

Basic Configuration

import SDK, { IUserSettings } from "@maestro_io/maestro-web-sdk";

const userSettings: IUserSettings = {
panels: {
bets: {
hidePanel: false,
hideWagers: true,
},
stats: {
hidePanel: false,
},
keyPlays: {
hidePanel: false,
},
},
};

// Configure SDK with user settings
SDK.configure({
siteID: "your-site-id",
userSettings: userSettings,
});

Event-Specific Settings

// Start watching an event with specific settings
const maestroEvent = await SDK.userDidStartWatchingEvent(
"event-id",
delegate,
userSettings
);