didShowPanel
Tells the session your app is showing the panel.
Overview
Call didShowPanel() on the session to mark the panel visible and select one of its tabs. The session tracks panel
views and keeps refreshing its config while the panel is visible. MaestroCorePanel marks
itself visible while it is on screen, so with it you only need didShowPanel() to select a tab. To select a tab only
when the page has it, use selectPanelIfEnabled().
Syntax
fun didShowPanel(panelTypeId: PanelTypeId?)
Parameters
| Parameter | Type | Description |
|---|---|---|
panelTypeId | PanelTypeId? | The tab to select, by panel type (PanelTypeId("helloWorld")) or config panel id (PanelTypeId("builderBlockPanel-2")). With null, or an id the page doesn't have, the first tab is selected. |
Example
sdk.didShowPanel(PanelTypeId("helloWorld"))