didShowPanel
Introduction
The didShowPanel(_:)
method notifies the SDK that the MaestroPanel has been displayed in your app. This allows the SDK to update its internal state and perform any actions needed based on the panel’s visibility. The method accepts a PanelType
parameter, which specifies the type of panel being shown.
PanelType Options
The PanelType
enumeration defines the following options:
PanelType | Label Text | Image Name Prefix |
---|---|---|
keyPlays | KEY PLAYS | Key-Plays |
stats | STATS | Stats |
fantasy | FANTASY | Fantasy |
bets | BETS | Bets |
shop | SHOP | Shop |
Parameters
Parameter | Type | Description | Example |
---|---|---|---|
panelType | PanelType | The type of panel that has been displayed. | .keyPlays |
Code Example
// Notify the SDK that the MaestroPanel of type `keyPlays` is now visible.
eventInterface.didShowPanel(.keyPlays)