MaestroHelloWorldPanel
Shows that the SDK is installed and running.
Overview
MaestroHelloWorldPanel is a Jetpack Compose composable that renders the hello world panel for a core SDK session. It
draws with MaestroCoreTheme unless you pass your own theme; to customize, start from MaestroCoreTheme.copy(...).
Syntax
@Composable
fun MaestroHelloWorldPanel(
sdk: CoreMaestroSDK.Instance,
modifier: Modifier = Modifier,
theme: MaestroThemeData = MaestroCoreTheme,
)
Parameters
| Parameter | Type | Description |
|---|---|---|
sdk | CoreMaestroSDK.Instance | The session returned by configure() |
modifier | Modifier | Modifier applied to the panel. Defaults to Modifier. |
theme | MaestroThemeData | Theme the panel draws with. Defaults to MaestroCoreTheme. |
Example
setContent {
MaestroHelloWorldPanel(
sdk = sdk,
modifier = Modifier
.width(400.dp)
.fillMaxHeight(),
)
}