DefaultStage

fun SpatialAppScope.DefaultStage(content: @Composable StageScope.() -> Unit)

The first Stage of app, started by PICO OS. Currently must be configured at app's AndroidManifest.xml.

The first WindowContainer of app, started by PICO OS. Currently must be configured at app's AndroidManifest.xml.

Your launch activity should extend SpatialLaunchActivity.

<application>
<activity
android:name=".platform.LaunchActivity"
android:exported="true"
android:theme="@style/Theme.SpatialApp">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

<meta-data android:name="pico.spatial.stage.id" android:value="MainStage"/>
<meta-data android:name="pico.spatial.stage.style" android:value="0"/>
<meta-data android:name="pico.spatial.stage.immersion" android:value="50"/>
<meta-data android:name="pico.spatial.stage.immersion_min" android:value="0"/>
<meta-data android:name="pico.spatial.stage.immersion_max" android:value="100"/>
</activity>
</application>

It needs to be configured in AndroidManifest, like DefaultWindowContainer. The app entrance can be either DefaultStage or DefaultWindowContainer.

See also