The Android XR SDK is now available in Developer Preview. We want your feedback! Visit our
support page to reach out.
Stay organized with collections
Save and categorize content based on your preferences.
XRSessionFeature
This OpenXRInteractionFeature
provides Android XR session management for all extended Android XR features, and common session configurations.
It also provides Android XR implementation of XRSessionSubsystem
if there is no session subsystem available.
Summary
Inheritance
Inherits from:
OpenXRFeature
Public attributes
|
ExtensionStrings = _subsamplingExtensions + " " + _spacewarpExtensions
|
const string
The OpenXR Extension string.
|
FeatureId = "com.google.xr.extensions.session_management"
|
const string
The feature ID string.
|
ImmersiveXR = true
|
bool
A boolean that indicates the activity starts in XR Immersive mode, and will be launched in full-screen mode.
|
UiName = "Android XR (Extensions): Session Management"
|
const string
The UI name shows on the XR Plug-in Management panel, help users to understand validation errors and expected fixes.
|
Properties
|
SpaceWarp
|
bool
Gets or sets a value indicating whether to enable the usage of URP Space Warp.
|
VulkanSubsampling
|
bool
Gets or sets a value indicating whether to enable the usage of Vulkan Subsampling.
|
Public attributes
ExtensionStrings
const string ExtensionStrings = _subsamplingExtensions + " " + _spacewarpExtensions
The OpenXR Extension string.
Used to check if this extensions is available or enabled.
FeatureId
const string FeatureId = "com.google.xr.extensions.session_management"
ImmersiveXR
bool ImmersiveXR = true
A boolean that indicates the activity starts in XR Immersive mode, and will be launched in full-screen mode.
UiName
const string UiName = "Android XR (Extensions): Session Management"
The UI name shows on the XR Plug-in Management panel, help users to understand validation errors and expected fixes.
Properties
SpaceWarp
bool SpaceWarp
Gets or sets a value indicating whether to enable the usage of URP Space Warp.
It requires Vulkan graphics API.
Note: To toggle URP Space Warp at runtime, you can set this field with true
in Editor so the project can build with necessary BootConfig, then toggle this property at runtime.
VulkanSubsampling
bool VulkanSubsampling
Gets or sets a value indicating whether to enable the usage of Vulkan Subsampling.
Note: To toggle Vulkan Subsampling at runtime, you can set this field with true
in Editor so the project can build with necessary BootConfig, then toggle this property at runtime.
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-05-08 UTC.
[null,null,["Last updated 2025-05-08 UTC."],[],[],null,["# XRSessionFeature Class Reference\n\nXRSessionFeature\n================\n\nThis `OpenXRInteractionFeature` provides Android XR session management for all extended Android XR features, and common session configurations.\n\nIt also provides Android XR implementation of `XRSessionSubsystem` if there is no session subsystem available.\n\nSummary\n-------\n\n### Inheritance\n\nInherits from: `OpenXRFeature`\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------|\n| [ExtensionStrings](#extensionstrings)` = _subsamplingExtensions + \" \" + _spacewarpExtensions` | `const string` The OpenXR Extension string. |\n| [FeatureId](#featureid)` = \"com.google.xr.extensions.session_management\"` | `const string` The feature ID string. |\n| [ImmersiveXR](#immersivexr)` = true` | `bool` A boolean that indicates the activity starts in XR Immersive mode, and will be launched in full-screen mode. |\n| [UiName](#uiname)` = \"Android XR (Extensions): Session Management\"` | `const string` The UI name shows on the XR Plug-in Management panel, help users to understand validation errors and expected fixes. |\n\n| ### Properties ||\n|-----------------------------------------|-------------------------------------------------------------------------------------------|\n| [SpaceWarp](#spacewarp) | `bool` Gets or sets a value indicating whether to enable the usage of URP Space Warp. |\n| [VulkanSubsampling](#vulkansubsampling) | `bool` Gets or sets a value indicating whether to enable the usage of Vulkan Subsampling. |\n\nPublic attributes\n-----------------\n\n### ExtensionStrings\n\n```c#\nconst string ExtensionStrings = _subsamplingExtensions + \" \" + _spacewarpExtensions\n``` \nThe OpenXR Extension string.\n\nUsed to check if this extensions is available or enabled. \n\n### FeatureId\n\n```c#\nconst string FeatureId = \"com.google.xr.extensions.session_management\"\n``` \nThe feature ID string. \n\n### ImmersiveXR\n\n```c#\nbool ImmersiveXR = true\n``` \nA boolean that indicates the activity starts in XR Immersive mode, and will be launched in full-screen mode. \n\n### UiName\n\n```c#\nconst string UiName = \"Android XR (Extensions): Session Management\"\n``` \nThe UI name shows on the XR Plug-in Management panel, help users to understand validation errors and expected fixes.\n\nProperties\n----------\n\n### SpaceWarp\n\n```c#\nbool SpaceWarp\n``` \nGets or sets a value indicating whether to enable the usage of URP Space Warp.\n\nIt requires Vulkan graphics API.\n\nNote: To toggle URP Space Warp at runtime, you can set this field with `true` in Editor so the project can build with necessary BootConfig, then toggle this property at runtime. \n\n### VulkanSubsampling\n\n```c#\nbool VulkanSubsampling\n``` \nGets or sets a value indicating whether to enable the usage of Vulkan Subsampling.\n\nNote: To toggle Vulkan Subsampling at runtime, you can set this field with `true` in Editor so the project can build with necessary BootConfig, then toggle this property at runtime."]]