Skip to main content

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​

ParameterTypeDescription
sdkCoreMaestroSDK.InstanceThe session returned by configure()
modifierModifierModifier applied to the panel. Defaults to Modifier.
themeMaestroThemeDataTheme the panel draws with. Defaults to MaestroCoreTheme.

Example​

setContent {
MaestroHelloWorldPanel(
sdk = sdk,
modifier = Modifier
.width(400.dp)
.fillMaxHeight(),
)
}