SpatialAppScope

interface SpatialAppScope

A interface which be used to attach PICO OS concept. ONLY could be touched by developers at app entry point.

Properties

Link copied to clipboard
abstract val context: Context

The context of the app.

Link copied to clipboard
abstract val density: Density

A density of the screen.

Functions

Link copied to clipboard
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.

Link copied to clipboard
fun SpatialAppScope.DefaultWindowContainer(content: @Composable WindowContainerScope.() -> Unit)

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

Link copied to clipboard
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.

Link copied to clipboard
fun SpatialAppScope.WindowContainer(id: String, form: Form? = null, properties: ContainerProperties.() -> Unit = {}, content: @Composable WindowContainerScope.() -> Unit)
fun SpatialAppScope.WindowContainer(id: String, form: Form? = null, defaultSize: WindowContainerSize? = null, resizeType: ContainerResizeType? = null, defaultResizeRestriction: ContainerResizeRestriction? = null, enableMaterialBackground: Boolean? = null, volumeAlignment: VolumeAlignment? = null, defaultVolumeBasePanelType: VolumeBasePanelType? = null, defaultCaptionBarType: CaptionBarType? = null, placement: PlacementContext.() -> Placement? = null, targetActivity: Class<out ComponentActivity>? = null, worldScale: WorldScale? = null, content: @Composable WindowContainerScope.() -> Unit)

Declares a WindowContainer with unique id. The id is used to open/close the WindowContainer.