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.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: