updateConfig
Updates the user-specific configuration of the SDK. Changes will be reflected dynamically.
Overview
Call this method to update user-specific settings such as preferences, feature toggles, or other configuration options. The SDK will immediately apply these changes to its behavior and UI.
Method Signature
fun updateConfig(config: UserConfig)
Parameters
| Parameter | Type | Description |
|---|---|---|
config | UserConfig | User-specific configuration settings |
UserConfig
UserConfig is a data class that holds user-specific preferences and feature toggles.
data class UserConfig(
val enabledPanels: List<MaestroPanelType>? = null,
val hideWagers: Boolean = false,
val disableOverlays: Boolean = false,
val disableFantasyOverlays: Boolean = false,
val disableBetOverlays: Boolean = false,
val hidePickems: Boolean? = null,
)
| Property | Type | Default | Description |
|---|---|---|---|
enabledPanels | List<MaestroPanelType>? | null | Restricts which panel types are shown. When null, all panels enabled in the Maestro dashboard are shown. |
hideWagers | Boolean | false | When true, wager-related content is hidden from the user. |
disableOverlays | Boolean | false | When true, all overlay types (fantasy and bet) are suppressed. |
disableFantasyOverlays | Boolean | false | When true, fantasy-related overlays are suppressed. Takes effect alongside disableOverlays. |
disableBetOverlays | Boolean | false | When true, bet-related overlays are suppressed. Takes effect alongside disableOverlays. |
hidePickems | Boolean? | null | When true, pick-ems content is hidden. null indicates no preference (SDK default applies). |
Return Value
This method does not return a value.
Example
// Disable all overlays for a user who opted out
sdk.updateConfig(
UserConfig(disableOverlays = true)
)
// Disable only bet overlays while keeping fantasy overlays active
sdk.updateConfig(
UserConfig(disableBetOverlays = true)
)
// Restrict visible panels and hide wager content
sdk.updateConfig(
UserConfig(
enabledPanels = listOf(MaestroPanelType.STATS, MaestroPanelType.SCHEDULE),
hideWagers = true,
)
)
Notes
- Changes take effect immediately
- Use this to dynamically update user preferences without restarting the SDK
- The SDK UI will update to reflect the new configuration
- This method can be called multiple times as settings change
disableOverlayssuppresses all overlay types;disableFantasyOverlaysanddisableBetOverlaysprovide more granular control
Related Methods
- configure() - Initial SDK configuration