Start native apps faster with the Composables CLI ->
Property

LocalSession

A composition local that provides the current Jetpack XR Session.

Source set: Android
public val LocalSession: ProvidableCompositionLocal<Session?> =
    compositionLocalWithComputedDefaultOf {
        LocalComposeXrOwners.currentValue.session
    }

A composition local that provides the current Jetpack XR Session.

In non-XR environments, this composition local will return null.