Stage

fun SpatialAppScope.Stage(id: String, immersion: Immersion? = null, brightness: Brightness? = null, upperLimbRenderMode: UpperLimbRenderMode? = null, targetActivity: Class<out ComponentActivity>? = null, content: @Composable StageScope.() -> Unit)

Declares a Stage with unique id. The id is used to execute open/close operations.

Stage is a boundless container provided by PICO OS.

When Stage is opened, the system will hide windows from other apps.

Parameters

id

The unique id of Stage.

immersion

The immersion of the Stage when it's opened. Only takes effect when openStage's style is StageStyle.Progressive, the default is DefaultImmersionLevel, the range in MinImmersionLevel..MaxImmersionLevel.

brightness

The Brightness to apply for this Stage. It cannot be changed while the Stage is alive.

upperLimbRenderMode

The upperLimbRenderMode of Stage.

targetActivity

The activity that bind to this Stage.

content

A Composable describe the content of Stage, typically use a SpatialView to present 3D content.