Skip to main content

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

ParameterTypeDescription
configUserConfigUser-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,
)
PropertyTypeDefaultDescription
enabledPanelsList<MaestroPanelType>?nullRestricts which panel types are shown. When null, all panels enabled in the Maestro dashboard are shown.
hideWagersBooleanfalseWhen true, wager-related content is hidden from the user.
disableOverlaysBooleanfalseWhen true, all overlay types (fantasy and bet) are suppressed.
disableFantasyOverlaysBooleanfalseWhen true, fantasy-related overlays are suppressed. Takes effect alongside disableOverlays.
disableBetOverlaysBooleanfalseWhen true, bet-related overlays are suppressed. Takes effect alongside disableOverlays.
hidePickemsBoolean?nullWhen 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
  • disableOverlays suppresses all overlay types; disableFantasyOverlays and disableBetOverlays provide more granular control