Stay organized with collections
Save and categorize content based on your preferences.
public final class SessionExt
Summary
Public methods |
static final @NonNull Scene |
Gets the Scene associated with this Session.
|
Public methods
public static final @NonNull Scene getScene(@NonNull Session receiver)
Gets the Scene
associated with this Session.
The Scene
is the primary interface for creating and managing spatial content. There is a single Scene
instance for each Session
.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-08-13 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-13 UTC."],[],[],null,["# SessionExt\n==========\n\nAdded in 1.0.0-alpha06\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/androidx/xr/scenecore/package-summary \"View this page in Kotlin\") \\|Java\n\n\n```\npublic final class SessionExt\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nSummary\n-------\n\n| ### Public methods |\n|---------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `static final @`[NonNull](/reference/androidx/annotation/NonNull)` `[Scene](/reference/androidx/xr/scenecore/Scene) | [getScene](/reference/androidx/xr/scenecore/SessionExt#(androidx.xr.runtime.Session).getScene())`(@`[NonNull](/reference/androidx/annotation/NonNull)` `[Session](/reference/androidx/xr/runtime/Session)` receiver)` Gets the [Scene](/reference/androidx/xr/scenecore/Scene) associated with this Session. |\n\nPublic methods\n--------------\n\n### getScene\n\nArtifact: [androidx.xr.scenecore:scenecore](/jetpack/androidx/releases/xr-scenecore) \n[View Source](https://cs.android.com/search?q=file:androidx/xr/scenecore/SessionExt.kt+symbol:scene) \nAdded in [1.0.0-alpha06](/jetpack/androidx/releases/xr-scenecore#1.0.0-alpha06) \n\n```\npublic static final @NonNull Scene getScene(@NonNull Session receiver)\n```\n\nGets the [Scene](/reference/androidx/xr/scenecore/Scene) associated with this Session.\n\nThe `Scene` is the primary interface for creating and managing spatial content. There is a single `Scene` instance for each `Session`. \n\n| See also |\n|-------------------------------------------------|---|\n| [Scene](/reference/androidx/xr/scenecore/Scene) | |"]]