XR Runtime
| Последнее обновление | Стабильный релиз | Предварительная версия релиза | Бета-версия | Альфа-версия |
|---|---|---|---|---|
| 9 сентября 2026 г. | - | 1.0.0-rc01 | - | 1.1.0-alpha01 |
Объявление зависимостей
Чтобы добавить зависимость от среды выполнения XR, необходимо добавить репозиторий Google Maven в ваш проект. Для получения дополнительной информации ознакомьтесь с информацией в репозитории Google Maven .
Добавьте зависимости для необходимых артефактов в файл build.gradle вашего приложения или модуля:
классный
dependencies { implementation "androidx.xr.runtime:runtime:1.1.0-alpha01" // Use in environments that do not support OpenXR testImplementation "androidx.xr.runtime:runtime-testing:1.1.0-alpha01" }
Котлин
dependencies { implementation("androidx.xr.runtime:runtime:1.1.0-alpha01") // Use in environments that do not support OpenXR testImplementation("androidx.xr.runtime:runtime-testing:1.1.0-alpha01") }
Для получения дополнительной информации о зависимостях см. раздел «Добавление зависимостей сборки» .
Обратная связь
Ваши отзывы помогают улучшить Jetpack. Сообщите нам, если вы обнаружите новые проблемы или у вас есть идеи по улучшению этой библиотеки. Пожалуйста, ознакомьтесь с существующими проблемами в этой библиотеке, прежде чем создавать новую. Вы можете проголосовать за существующую проблему, нажав кнопку со звездочкой.
Для получения более подробной информации см. документацию по системе отслеживания ошибок .
Версия 1.1
Версия 1.1.0-alpha01
9 сентября 2026 г.
Выпущена версия androidx.xr.runtime:runtime-*:1.1.0-alpha01 . Версия 1.1.0-alpha01 содержит следующие коммиты .
Изменения в API
- Добавить SPATIAL_API_V4 в
SpatialApiVersions( I71e7a )
Версия 1.0
Версия 1.0.0-rc01
9 сентября 2026 г.
Выпущена версия androidx.xr.runtime:runtime-*:1.0.0-rc01 . Версия 1.0.0-rc01 содержит следующие коммиты .
Изменения в поведении
Версия 1.0.0-beta02
12 августа 2026 г.
Выпущена версия androidx.xr.runtime:runtime-*:1.0.0-beta02 . Версия 1.0.0-beta02 содержит следующие коммиты .
Исправлены ошибки
- Улучшено определение поддержки
OpenXRв эмулируемых средах. ( Ifec51 ) - Для отладки реализована
toString()в большем количестве классов. ( I67d83 ) - Fix
XrDeviceTestRuleto work whenXrDeviceis created after applying settings. ( Ica32c )
Версия 1.0.0-beta01
15 июля 2026 г.
Выпущена версия androidx.xr.runtime:runtime-*:1.0.0-beta01 . Версия 1.0.0-beta01 содержит следующие коммиты .
Изменения в API
- Добавлено
SessionTestRuleв runtime-testing. Этот API ( I672bc , b/516876144 ) - Функция Session.create преобразована в функцию приостановки. ( I5d27f )
- Добавлена поддержка жизненного цикла для правила
XrDeviceTestRule( I2319c , b/512140272 ). - Удалена неиспользуемая аннотация экспериментального выбора
ExperimentalXrDeviceLifecycleApi. ( I46d95 ) - Добавьте специализированные переопределения метода
toString()для ряда типов, используемых во время выполнения. Эти типы предназначены для предоставления разработчикам дополнительной информации в целях отладки и не предназначены для использования в производственных или выпущенных приложениях.
Исправлены ошибки
- Фиксированная поза. Выравнивание в прямом направлении
fromLookAt, исправлено извлечение масштаба в Matrix3 и предотвращено появление числовых значенийNaNsпри нормализации, преобразовании оси в угол и вычисленияхangleBetween. ( I7a3b5 , b/367780918 )
Версия 1.0.0-alpha15
17 июня 2026 г.
Выпущена версия androidx.xr.runtime:runtime-*:1.0.0-alpha15 . Версия 1.0.0-alpha15 содержит следующие коммиты .
Изменения в API
- Добавлен тестовый API для
isProjectedServiceAvailable()( I44ba1 ) - Доступен экспериментальный API-интерфейс
DeviceTrackingMode.INERTIAL, распространяемый под новой аннотацией@ExperimentalInertialTrackingApi. ( Ic3df3 ) - Added
Config.Builder. Apps can create custom configurations by calling setter functions on the builder object and then callingBuilder.build. ( I13142 ) -
androidx.xr.runtime.FieldOfViewбыл удален. Приложениям следует использоватьandroidx.xr.runtime.math.FieldOfViewвместо него. ( I621ef ) - Теперь
Session.createнеобходимо выполнять в потоке с аннотацией@WorkerThread. ( I2169e ) - Добавлена
isProjectedServiceAvailable()дляXrDevice( I507e9 ) - Переименование
DeviceTrackingMode.SPATIAL_LAST_KNOWNвDeviceTrackingMode.SPATIALиDeviceTrackingMode.INERTIAL_LAST_KNOWNвDeviceTrackingMode.INERTIAL( I96f8b ) -
Vector3.angleBetweenиVector4.angleBetweenтеперь возвращают градусы, а не радианы. ( Ica8bc ) - Добавлен API
QrCode( Ia0bbe ).
Версия 1.0.0-alpha14
19 мая 2026 г.
Выпущена версия androidx.xr.runtime:runtime-*:1.0.0-alpha14 . Версия 1.0.0-alpha14 содержит следующие коммиты .
Изменения в API
- Устаревший режим
GeospatialMode.VPS_AND_GPSв пользуGeospatialMode.SPATIALи новый режим слежения с меньшим энергопотреблением,GeospatialMode.INERTIAL, использующий только IMU и GPS. ( I1e6cd ) - Удаляет метку устаревания для
androidx.xr.runtime.FieldOfView. Делаетandroidx.xr.runtime.math.FieldOfViewпсевдонимом типа дляandroidx.xr.runtime.FieldOfViewв рамках подготовки к удалению последнего в следующем релизе. Клиентам необходимо перейти на версиюandroidx.xr.runtime.mathвезде, где они используют версиюandroidx.xr.runtime. ( I6ce15 ) - Added the
PreviewProjectedApiannotation ( Ic49f6 ) - Удалён
AugmentedObjectCategory.allSupported( I08656 ) - Добавление API в
XrDeviceдля определения поддержки устройством отслеживания движений рук, отслеживания взгляда, оценки глубины, геопространственных данных и рендеринга. ( I00696 ) -
Session.getNativeDataбыл заменен наXrDevice.getNativeInstanceDataиSession.getNativeSessionData. ( Ieb077 ) - Аннотированный
DeviceTrackingMode.INERTIAL_LAST_KNOWNс аннотацией@PreviewSpatialApi. ( I99868 ) - Добавлено правило
XrDeviceTestRuleдля использования в модульных тестах. ( I87584 ) - Adding
CATEGORY_XR_PROJECTED_LAUNCHER, this constant is used in the Manifest file to indicate the activity should be discovered as a launcher by the system. ( Ia3069 )
Внешний вклад
- Добавить
AugmentedImageModeвConfigAPI ( I0cf09 )
Версия 1.0.0-alpha13
6 мая 2026 г.
Выпущена версия androidx.xr.runtime:runtime-*:1.0.0-alpha13 . Версия 1.0.0-alpha13 содержит следующие коммиты .
Изменения в API
-
TrackingStateиVpsAvailabilityResultперенесены вandroidx.xr.arcore package, а типы вandroidx.xr.runtimeтеперь устарели. ( Ic7930 , b/480462213 ) -
Session.getNativeData()теперь определен в модулеxr:runtime:runtimeи предоставляет [nativeFunctionTablePointer] для сред выполнения, поддерживаемых OpenXR. ( Ifa862 ) - API
NativeDataперенесен в библиотекуxr:runtime:runtime. ( I87954 , b/494251500 ) -
Session.createandSession.configureare now non-exhaustive and require else clauses in when statements. ( I9885e , b/495805998 , b/495805998 ) -
androidx.xr.runtime.FieldOfViewустарел. Используйтеandroidx.xr.runtime.math.FieldOfViewвместо него. ( Ia01a0 , b/480233045 ) -
Matrix4.posehas been renamed toMatrix4.toPose(). The pose property is now deprecated. ( I329b4 , b/493383490 ) - Добавлен API
XrServiceAvailability( If379e , b/493558010 ) - Добавлена аннотация
ExperimentalXrServiceAvailabilityApi( Icab49 , b/491069725 ) - Удалите суффикс для
@PreviewSpatialApi( If5242 , b/491939311 ) - Переименовано
DeviceTrackingMode.LAST_KNOWNвSPATIAL_LAST_KNOWN(с устаревшим резервным вариантом), добавленоINERTIAL_LAST_KNOWNдля отслеживания 3 степеней свободы и добавленоTRACKING_DEGRADEDвTrackingState. ( Ie661c , b/445466590 ) - Added
XrLogAPI. SetXrLog.isEnabledtotrueto enable logging in JetpackXR, and use [XrLog.Level] to set the log level. ( I76a1f , b/463460895 , b/487378441 ) - Adding
DISPLAY_CATEGORY_XR_PROJECTED, this constant is used in the Manifest file to indicate the activity is meant for a XR projected display ( I26d8b )
Версия 1.0.0-alpha12
25 марта 2026 г.
Выпущена версия androidx.xr.runtime:runtime-*:1.0.0-alpha12 . Версия 1.0.0-alpha12 содержит следующие коммиты .
Изменения в API
- Изменено значение
Config.augmentedObjectCategoriesсо списка на множество ( I25a64 , b/487376359 ). - Удалён флаг
unscaledGravityAlignedActivitySpaceизSession.create.ActivitySpaceтеперь всегда не масштабируется и выравнивается по гравитации. ( If6f11 , b/458173423 ) - Добавлена перегрузка
Session.create, позволяющая передавать контекст Android для определения области видимости ресурсов. ( I7d3fe , b/415805990 , b/477386334 ) - Добавлены
JvmOverloadsкFloatSize2d.to3d,Matrix3.copyиMatrix4.copy( I69586 , b/481371562 ) - Added ability to set categories for
AugmentedObjecttracking in the Config ( I1f6e4 , b/480220930 ) - Added
xr:runtime:runtime-interfacesmodule. ( I52ac6 , b/461561664 )
Версия 1.0.0-alpha11
25 февраля 2026 г.
androidx.xr.runtime:runtime-*:1.0.0-alpha11 is released. Version 1.0.0-alpha11 contains these commits .
Изменения в API
- Restricted
ConfigModeinterface to internal use ( Ibfb87 ) - Moved
androidx.xr.runtime.Config.GeospatialModeto package level ( Ibe682 ) - Moved
androidx.xr.runtime.Config.FaceTrackingModeto package level ( Iac501 ) - Moved
androidx.xr.runtime.Config.AnchorPersistenceModeto package level ( I0360f ) - Moved
androidx.xr.runtime.Config.DepthEstimationModeto package level ( I7e3e9 ) - Moved
androidx.xr.runtime.Config.DeviceTrackingModeto package level ( I3aacd ) - Moved
androidx.xr.runtime.Config.HandTrackingModeto package level ( I658f3 ) - Moved
androidx.xr.runtime.Config.PlaneTrackingModeto package level ( Ia251b ) - Moved
androidx.xr.runtime.XrDevice.DisplayBlendModeto package level ( I6f333 ) - Added a factory method to create an
XrDeviceusing a Context, Session and aCoroutineContext. ( I139c5 ) - Добавлен
SpatialApiVersionHelperдля запроса версии среды выполнения Android XR, доступной на платформе. ( I7c53c ) - Добавлен модуль
xr:runtime:runtime-openxr( Ib42ea )
Версия 1.0.0-alpha10
28 января 2026 г.
androidx.xr.runtime:runtime-*:1.0.0-alpha10 is released. Version 1.0.0-alpha10 contains these commits .
Изменения в API
-
ConfigMode.HeadTrackingModeis replaced withConfigMode.DeviceTrackingMode. ( le273e , b/467150206 ) - Удалены методы
toNormalized,times(float)иdiv(float)класса Quaternion. Эти методы избыточны, поскольку все кватернионы нормализуются во время создания объекта, а также учитывая неизменяемость класса. ( l558fc , b/460210457 )
Исправлены ошибки
- Добавлена документация к
Session.create, иллюстрирующая, как избежать создания сессии в основном потоке приложения. ( le5554 , b/463687170 ) - Prevented applications from creating a
BoundingBoxwith aNaNvalue. ( l58c14 , b/464025895 )
Версия 1.0.0-alpha09
3 декабря 2025 г.
androidx.xr.runtime:runtime-*:1.0.0-alpha09 is released. Version 1.0.0-alpha09 contains these commits .
Версия 1.0.0-alpha08
19 ноября 2025 г.
androidx.xr.runtime:runtime-*:1.0.0-alpha08 is released. Version 1.0.0-alpha08 contains these commits .
Новые функции
- Добавлено
XrDeviceдля предоставления информации о возможностях устройства. ( Ic9d1f ) - Added new
ConfigMode.isSupportedAPI for querying session capabilities. ( Iff7af ) - Добавлен API
XrDisplay.BlendMode. ( I484e4 )
Изменения в API
- Renamed [XrDevice.getPreferredBlendMode] to [XrDevice.getPreferredDisplayBlendMode]. ( I7e48f )
Версия 1.0.0-alpha07
22 октября 2025 г.
Выпущена версия androidx.xr.runtime:runtime-*:1.0.0-alpha07 . Версия 1.0.0-alpha07 содержит следующие коммиты .
Изменения в API
- Удалите
SessionConfigureConfigureNotSupportedи замените его наUnsupportedOperationException. ( I7680f )
Версия 1.0.0-alpha06
24 сентября 2025 г.
androidx.xr.runtime:runtime-*:1.0.0-alpha06 is released. Version 1.0.0-alpha06 contains these commits .
Изменения в API
-
HandJointTypeперемещен из xr:xr:runtime:runtimexr:arcore:arcore. ( Iadb9c , b/409058039 ) - Изменение оператора умножения для
componentWiseMultiplicationвVector2,Vector3,Vector4на scale и удаление символа оператора для согласованности с другими математическими библиотеками. Также удалениеcomponentWiseDivisionиз классов Vector вместо использованияVector.scale(otherVector.inverse()). ( I8e1f6 , b/399146447 ) - Adding [unscaled] to return a Matrix with a scale of one. ( I6381d , b/434928658 )
-
:xr:runtime:runtime-guavaбудет удален, так какCoroutines.ktзаменен наSuspendtoFutureAdapter. ( I0cd3c , b/406597902 )
Версия 1.0.0-alpha05
30 июля 2025 г.
androidx.xr.runtime:runtime-*:1.0.0-alpha05 is released. Version 1.0.0-alpha05 contains these commits .
Новые функции
- Добавить
HandJointTypeиTrackingState. ( I55880 , b/334645808 ) - Сделать реализацию Config общедоступной. ( I95860 , b/334645808 )
- Введены новые типы данных
SessionCreateResultиSessionConfigureResult. ( Icb8cb , b/334645808 ) - Добавьте новый класс
BoundingBox, представляющий собой выровненный по осям ограничивающий прямоугольник в трехмерном пространстве, определяемый его минимальными и максимальными угловыми точками. ( Ic68c5 , b/423073468 )
Изменения в API
- Переименован и перемещен
androidx.xr.scenecore.PixelDimensionsвandroidx.xr.runtime.math.IntSize2d. Переименован и перемещенandroidx.xr.scenecore.Dimensionsвandroidx.xr.runtime.math.FloatSize3d. Переименованandroidx.xr.scenecore.PlaneTypeвandroidx.xr.scenecore.PlaneOrientation. Переименованandroidx.xr.scenecore.PlaneSemanticвandroidx.xr.scenecore.PlaneSemanticType. ( Ifd405 , b/416456228 ) - Удалён класс
androidx.xr.runtime.FoV. Используйте вместо негоandroidx.xr.runtime.FieldOfView. ( I9ae27 ) - Добавлена дополнительная перегрузка для
Session.create, которая может предоставитьLifecycleOwnerдля привязки сессии. Обратите внимание, что для управления ресурсами по-прежнему необходимо указывать Activity, а область действияLifecycleOwnerдолжна быть ограничена Activity. ( I1690b ) - Переименована
FakeRuntimeAnchor.anchorsCreatedвanchorsCreatedCount( I96df9 , b/424441218 ) - Значения параметров Config
*Modeбыли переименованы в соответствии с их поведением. ( I6d247 , b/414648065 ) - Projects released with Kotlin 2.0 require KGP 2.0.0 or newer to be consumed ( Idb6b5 , b/344563182 )
- API, связанные со строками манифеста, были перемещены из
:xr:runtime:runtimeв:xr:runtime:runtime-manifest. Название пакета изменилось сandroidx.xr.runtimeнаandroidx.xr.runtime.manifest. ( I610ad , b/418800249 ) -
Session.resume(),Session.pause()иSession.destroy()были удалены из API. Session больше не являетсяLifecycleOwner. Жизненный цикл Session теперь будет привязан к жизненному циклу Activity, переданной вSession.create(). ( I28a03 ) - В этой библиотеке теперь используются аннотации JSpecify для проверки на null , которые относятся к использованию типов. Разработчикам Kotlin следует использовать следующий аргумент компилятора для обеспечения корректного использования:
-Xjspecify-annotations=strict(это значение по умолчанию, начиная с версии 2.1.0 компилятора Kotlin) ( Ia8420 , b/326456246 ) - Основной артефакт среды выполнения (
:xr:runtime:runtime) будет содержать только асинхронные API в стиле Kolin. Java-разработчики могут использовать:xr:runtime:runtime-guavaдля доступа к совместимым API. ( I05d4a , b/426639315 ) - Основной артефакт среды выполнения (
:xr:runtime:runtime) будет содержать только асинхронные API в стиле Kotlin. Java-разработчики могут использовать библиотекуxr:runtime:runtime-rxjava3для доступа к совместимым API. ( I64122 , b/426639775 ) - Переместите сопрограммы в
:xr:runtime:runtime-guava, а потоки выполнения — в:xr:runtime:runtime-rxjava3. ( I60ae9 ) -
Session.createиSession.configureтеперь выбрасывают исключениеSecurityExceptionесли не предоставлены достаточные разрешения, вместо возвратаSessionCreatePermissionsNotGrantedилиSessionConfigurePermissionsNotGranted. ( I7c488 , b/430651879 )
Версия 1.0.0-alpha04
7 мая 2025 г.
Выпущены androidx.xr.runtime:runtime:1.0.0-alpha04 , androidx.xr.runtime:runtime-openxr:1.0.0-alpha04 и androidx.xr.runtime:runtime-testing:1.0.0-alpha04 . Версия 1.0.0-alpha04 содержит следующие коммиты .
Новые функции
- В Session теперь реализован интерфейс
androidx.lifecycle.LifecycleOwnerдля повышения совместимости с существующими парадигмами жизненного цикла Android. - Строки манифеста для Android XR указаны и задокументированы здесь.
- Добавлены методы расширения Spatial Visibility Callback для отслеживания перемещений содержимого сцены внутри или за пределами поля зрения пользователя.
- Добавлена заглушка для класса
JxrPlatformAdapter(и всех связанных с ним классов). - В
SceneCoreи Runtime будет использоваться значение Session вместо значения Session изSceneCore. - Добавлена функция
ActivityPose.hitTest, позволяющая проводитьhitTestпо виртуальному контенту. - Теперь поддерживается указание нескольких реализаций среды выполнения на этапе компиляции. В процессе выполнения будет загружена только одна из них, исходя из текущего набора функций устройства.
- Добавлен новый тип компонента
SpatialPointerComponent, позволяющий клиентам указывать значок, отображаемый для указателя, или отключать его. В настоящее время этот компонент может быть прикреплен только к экземплярамPanelEntity.
Изменения в API
- Сделать реализацию Config общедоступной. ( I95860 )
- Добавить
HandJointTypeиTrackingState. ( I55880 ) - Для использования проектов, выпущенных с Kotlin 2.0, требуется KGP 2.0.0 или более поздняя версия ( Idb6b5 ).
-
Hand.isActive (boolean)было изменено наHand.trackingState. РеализацияOpenXRбыла соответствующим образом изменена. - Требование разрешения
android.permission.SCENE_UNDERSTANDINGвSession.configureизменено наandroid.permission.SCENE_UNDERSTANDING_COARSE. - Реализована функция
LifecycleManager.configure, которая теперь передает объектConfig, содержащий свойство для каждой настраиваемой функции среды выполнения. - Теперь
Session.configureможно вызывать сConfigдля настройки доступных функций среды выполнения. - Теперь
Session.createподдерживает передачу объектаCoroutineContextвместоCoroutineDispatcher. -
Session.createподдерживает загрузкуARCoreдля Jetpack XR и/илиSceneCore. Необходимо предоставить хотя бы один из них (доступны тестовые версии). -
FakePerceptionManagerгенерирует исключениеAnchorInvalidUuidExceptionесли в методыAnchor.loadиAnchor.unpersistпередается недопустимый UUID. -
CoreStateбольше не является классом данных.
Исправлены ошибки
- Исправлены настройки ProGuard во время выполнения.
Версия 1.0.0-alpha03
26 февраля 2025 г.
Выпущены androidx.xr.runtime:runtime:1.0.0-alpha03 , androidx.xr.runtime:runtime-openxr:1.0.0-alpha03 и androidx.xr.runtime:runtime-testing:1.0.0-alpha03 без существенных изменений по сравнению с последней альфа-версией. Версия 1.0.0-alpha03 содержит следующие коммиты .
Версия 1.0.0-alpha02
12 февраля 2025 г.
Выпущены androidx.xr.runtime:runtime:1.0.0-alpha02 , androidx.xr.runtime:runtime-openxr:1.0.0-alpha02 и androidx.xr.runtime:runtime-testing:1.0.0-alpha02 . Версия 1.0.0-alpha02 содержит следующие коммиты .
Нарушения и изменения в поведении
- Теперь функции среды выполнения
OpenXR, возвращающие объект Anchor, генерируют исключениеAnchorResourcesExhaustedExceptionесли они обнаруживают код ошибки, указывающий на достижение лимита ресурсовOpenXR. - Теперь для
Session.createиSession.resumeтребуется разрешениеandroid.permission.HAND_TRACKING.
Новые функции
- Добавлена поддержка отслеживания движений рук.
Исправлены ошибки
- Создание привязок происходит более стабильно при запуске на эмуляторе.
Версия 1.0.0-alpha01
12 декабря 2024 г.
Выпущена версия androidx.xr.runtime:runtime-* 1.0.0-alpha01 .
Особенности первоначального выпуска
Первый релиз библиотеки Jetpack XR Runtime. Эта библиотека содержит основные функциональные возможности для набора библиотек Jetpack XR. Сюда входят обнаружение возможностей, управление жизненным циклом, конфигурация и многое другое. Библиотека Runtime предоставляет различные варианты (например, runtime-openxr или runtime-testing ) в зависимости от платформы выполнения. Кроме того, эта библиотека предлагает основные математические абстракции, такие как Vector3 и Matrix4 , которые используются во всей поверхности API Jetpack XR.
Session: Предоставляет вам детальный контроль над системой XR, включая определение того, когда выполняется обработка, а когда нет, и общую конфигурацию. Это также идентификатор, который вы будете использовать во всех других API для разблокировки базовых возможностей системы.Pose: Местоположение в произвольной системе координат, которому присвоены позиция и ориентация. Вы будете использовать этот класс для передачи местоположения объектов в ARCore для Jetpack XR и Jetpack SceneCore.
Известные проблемы
- В настоящее время
configureничего не делает. В будущих версиях будут добавлены новые параметры, которые позволят управлять поведениемSession.
XR Runtime
| Последнее обновление | Стабильный релиз | Предварительная версия релиза | Бета-версия | Альфа-версия |
|---|---|---|---|---|
| 9 сентября 2026 г. | - | 1.0.0-rc01 | - | 1.1.0-alpha01 |
Объявление зависимостей
Чтобы добавить зависимость от среды выполнения XR, необходимо добавить репозиторий Google Maven в ваш проект. Для получения дополнительной информации ознакомьтесь с информацией в репозитории Google Maven .
Добавьте зависимости для необходимых артефактов в файл build.gradle вашего приложения или модуля:
классный
dependencies { implementation "androidx.xr.runtime:runtime:1.1.0-alpha01" // Use in environments that do not support OpenXR testImplementation "androidx.xr.runtime:runtime-testing:1.1.0-alpha01" }
Котлин
dependencies { implementation("androidx.xr.runtime:runtime:1.1.0-alpha01") // Use in environments that do not support OpenXR testImplementation("androidx.xr.runtime:runtime-testing:1.1.0-alpha01") }
Для получения дополнительной информации о зависимостях см. раздел «Добавление зависимостей сборки» .
Обратная связь
Ваши отзывы помогают улучшить Jetpack. Сообщите нам, если вы обнаружите новые проблемы или у вас есть идеи по улучшению этой библиотеки. Пожалуйста, ознакомьтесь с существующими проблемами в этой библиотеке, прежде чем создавать новую. Вы можете проголосовать за существующую проблему, нажав кнопку со звездочкой.
Для получения более подробной информации см. документацию по системе отслеживания ошибок .
Версия 1.1
Версия 1.1.0-alpha01
9 сентября 2026 г.
Выпущена версия androidx.xr.runtime:runtime-*:1.1.0-alpha01 . Версия 1.1.0-alpha01 содержит следующие коммиты .
Изменения в API
- Добавить SPATIAL_API_V4 в
SpatialApiVersions( I71e7a )
Версия 1.0
Версия 1.0.0-rc01
9 сентября 2026 г.
Выпущена версия androidx.xr.runtime:runtime-*:1.0.0-rc01 . Версия 1.0.0-rc01 содержит следующие коммиты .
Изменения в поведении
Версия 1.0.0-beta02
12 августа 2026 г.
Выпущена версия androidx.xr.runtime:runtime-*:1.0.0-beta02 . Версия 1.0.0-beta02 содержит следующие коммиты .
Исправлены ошибки
- Улучшено определение поддержки
OpenXRв эмулируемых средах. ( Ifec51 ) - Для отладки реализована
toString()в большем количестве классов. ( I67d83 ) - Исправлена ошибка
XrDeviceTestRule, из-за которойXrDeviceработает после применения настроек. ( Ica32c )
Версия 1.0.0-beta01
15 июля 2026 г.
Выпущена версия androidx.xr.runtime:runtime-*:1.0.0-beta01 . Версия 1.0.0-beta01 содержит следующие коммиты .
Изменения в API
- Добавлено
SessionTestRuleв runtime-testing. Этот API ( I672bc , b/516876144 ) - Функция Session.create преобразована в функцию приостановки. ( I5d27f )
- Добавлена поддержка жизненного цикла для правила
XrDeviceTestRule( I2319c , b/512140272 ). - Удалена неиспользуемая аннотация экспериментального выбора
ExperimentalXrDeviceLifecycleApi. ( I46d95 ) - Добавьте специализированные переопределения метода
toString()для ряда типов, используемых во время выполнения. Эти типы предназначены для предоставления разработчикам дополнительной информации в целях отладки и не предназначены для использования в производственных или выпущенных приложениях.
Исправлены ошибки
- Фиксированная поза. Выравнивание в прямом направлении
fromLookAt, исправлено извлечение масштаба в Matrix3 и предотвращено появление числовых значенийNaNsпри нормализации, преобразовании оси в угол и вычисленияхangleBetween. ( I7a3b5 , b/367780918 )
Версия 1.0.0-alpha15
17 июня 2026 г.
Выпущена версия androidx.xr.runtime:runtime-*:1.0.0-alpha15 . Версия 1.0.0-alpha15 содержит следующие коммиты .
Изменения в API
- Добавлен тестовый API для
isProjectedServiceAvailable()( I44ba1 ) - Доступен экспериментальный API-интерфейс
DeviceTrackingMode.INERTIAL, распространяемый под новой аннотацией@ExperimentalInertialTrackingApi. ( Ic3df3 ) - Добавлен
Config.Builder. Приложения могут создавать пользовательские конфигурации, вызывая функции-сеттеры для объекта Builder, а затем вызываяBuilder.build. ( I13142 ) -
androidx.xr.runtime.FieldOfViewбыл удален. Приложениям следует использоватьandroidx.xr.runtime.math.FieldOfViewвместо него. ( I621ef ) - Теперь
Session.createнеобходимо выполнять в потоке с аннотацией@WorkerThread. ( I2169e ) - Добавлена
isProjectedServiceAvailable()дляXrDevice( I507e9 ) - Переименование
DeviceTrackingMode.SPATIAL_LAST_KNOWNвDeviceTrackingMode.SPATIALиDeviceTrackingMode.INERTIAL_LAST_KNOWNвDeviceTrackingMode.INERTIAL( I96f8b ) -
Vector3.angleBetweenиVector4.angleBetweenтеперь возвращают градусы, а не радианы. ( Ica8bc ) - Добавлен API
QrCode( Ia0bbe ).
Версия 1.0.0-alpha14
19 мая 2026 г.
Выпущена версия androidx.xr.runtime:runtime-*:1.0.0-alpha14 . Версия 1.0.0-alpha14 содержит следующие коммиты .
Изменения в API
- Устаревший режим
GeospatialMode.VPS_AND_GPSв пользуGeospatialMode.SPATIALи новый режим слежения с меньшим энергопотреблением,GeospatialMode.INERTIAL, использующий только IMU и GPS. ( I1e6cd ) - Удаляет метку устаревания для
androidx.xr.runtime.FieldOfView. Делаетandroidx.xr.runtime.math.FieldOfViewпсевдонимом типа дляandroidx.xr.runtime.FieldOfViewв рамках подготовки к удалению последнего в следующем релизе. Клиентам необходимо перейти на версиюandroidx.xr.runtime.mathвезде, где они используют версиюandroidx.xr.runtime. ( I6ce15 ) - Добавлена аннотация
PreviewProjectedApi( Ic49f6 ) - Удалён
AugmentedObjectCategory.allSupported( I08656 ) - Добавление API в
XrDeviceдля определения поддержки устройством отслеживания движений рук, отслеживания взгляда, оценки глубины, геопространственных данных и рендеринга. ( I00696 ) -
Session.getNativeDataбыл заменен наXrDevice.getNativeInstanceDataиSession.getNativeSessionData. ( Ieb077 ) - Аннотированный
DeviceTrackingMode.INERTIAL_LAST_KNOWNс аннотацией@PreviewSpatialApi. ( I99868 ) - Добавлено правило
XrDeviceTestRuleдля использования в модульных тестах. ( I87584 ) - Добавление константы
CATEGORY_XR_PROJECTED_LAUNCHERиспользуется в файле Manifest для указания того, что активность должна быть обнаружена системой как средство запуска. ( Ia3069 )
Внешний вклад
- Добавить
AugmentedImageModeвConfigAPI ( I0cf09 )
Версия 1.0.0-alpha13
6 мая 2026 г.
Выпущена версия androidx.xr.runtime:runtime-*:1.0.0-alpha13 . Версия 1.0.0-alpha13 содержит следующие коммиты .
Изменения в API
-
TrackingStateиVpsAvailabilityResultперенесены вandroidx.xr.arcore package, а типы вandroidx.xr.runtimeтеперь устарели. ( Ic7930 , b/480462213 ) -
Session.getNativeData()теперь определен в модулеxr:runtime:runtimeи предоставляет [nativeFunctionTablePointer] для сред выполнения, поддерживаемых OpenXR. ( Ifa862 ) - API
NativeDataперенесен в библиотекуxr:runtime:runtime. ( I87954 , b/494251500 ) -
Session.createиSession.configureтеперь не являются исчерпывающими и требуют добавления else-оговорок в операторе when. ( I9885e , b/495805998 , b/495805998 ) -
androidx.xr.runtime.FieldOfViewустарел. Используйтеandroidx.xr.runtime.math.FieldOfViewвместо него. ( Ia01a0 , b/480233045 ) -
Matrix4.poseпереименован вMatrix4.toPose(). Свойство pose теперь устарело. ( I329b4 , b/493383490 ) - Добавлен API
XrServiceAvailability( If379e , b/493558010 ) - Добавлена аннотация
ExperimentalXrServiceAvailabilityApi( Icab49 , b/491069725 ) - Удалите суффикс для
@PreviewSpatialApi( If5242 , b/491939311 ) - Переименовано
DeviceTrackingMode.LAST_KNOWNвSPATIAL_LAST_KNOWN(с устаревшим резервным вариантом), добавленоINERTIAL_LAST_KNOWNдля отслеживания 3 степеней свободы и добавленоTRACKING_DEGRADEDвTrackingState. ( Ie661c , b/445466590 ) - Добавлен API
XrLog. УстановитеXrLog.isEnabledвtrue, чтобы включить логирование в JetpackXR, и используйте [XrLog.Level] для установки уровня логирования. ( I76a1f , b/463460895 , b/487378441 ) - Добавление константы
DISPLAY_CATEGORY_XR_PROJECTEDиспользуется в файле Manifest для указания того, что действие предназначено для проецируемого XR-дисплея ( I26d8b ).
Версия 1.0.0-alpha12
25 марта 2026 г.
Выпущена версия androidx.xr.runtime:runtime-*:1.0.0-alpha12 . Версия 1.0.0-alpha12 содержит следующие коммиты .
Изменения в API
- Изменено значение
Config.augmentedObjectCategoriesсо списка на множество ( I25a64 , b/487376359 ). - Удалён флаг
unscaledGravityAlignedActivitySpaceизSession.create.ActivitySpaceтеперь всегда не масштабируется и выравнивается по гравитации. ( If6f11 , b/458173423 ) - Добавлена перегрузка
Session.create, позволяющая передавать контекст Android для определения области видимости ресурсов. ( I7d3fe , b/415805990 , b/477386334 ) - Добавлены
JvmOverloadsкFloatSize2d.to3d,Matrix3.copyиMatrix4.copy( I69586 , b/481371562 ) - Добавлена возможность устанавливать категории для отслеживания
AugmentedObjectв конфигурации ( I1f6e4 , b/480220930 ) - Добавлен модуль
xr:runtime:runtime-interfaces. ( I52ac6 , b/461561664 )
Версия 1.0.0-alpha11
25 февраля 2026 г.
Выпущена версия androidx.xr.runtime:runtime-*:1.0.0-alpha11 . Версия 1.0.0-alpha11 содержит следующие коммиты .
Изменения в API
- Интерфейс
ConfigModeограничен для внутреннего использования ( Ibfb87 ) - Перемещено значение
androidx.xr.runtime.Config.GeospatialModeна уровень пакета ( Ibe682 ) - Перемещено значение
androidx.xr.runtime.Config.FaceTrackingModeна уровень пакета ( Iac501 ) - Перемещено выполнение
androidx.xr.runtime.Config.AnchorPersistenceModeна уровень пакета ( I0360f ) - Перемещено значение
androidx.xr.runtime.Config.DepthEstimationModeна уровень пакета ( I7e3e9 ) - Перемещено значение
androidx.xr.runtime.Config.DeviceTrackingModeна уровень пакета ( I3aacd ) - Перемещено выполнение
androidx.xr.runtime.Config.HandTrackingModeна уровень пакета ( I658f3 ) - Перемещено значение
androidx.xr.runtime.Config.PlaneTrackingModeна уровень пакета ( Ia251b ) - Перемещено выполнение
androidx.xr.runtime.XrDevice.DisplayBlendModeна уровень пакета ( I6f333 ) - Добавлен фабричный метод для создания объекта
XrDeviceс использованием Context, Session иCoroutineContext. ( I139c5 ) - Добавлен
SpatialApiVersionHelperдля запроса версии среды выполнения Android XR, доступной на платформе. ( I7c53c ) - Добавлен модуль
xr:runtime:runtime-openxr( Ib42ea )
Версия 1.0.0-alpha10
28 января 2026 г.
Выпущена версия androidx.xr.runtime:runtime-*:1.0.0-alpha10 . Версия 1.0.0-alpha10 содержит следующие коммиты .
Изменения в API
-
ConfigMode.HeadTrackingModeзаменен наConfigMode.DeviceTrackingMode. ( le273e , b/467150206 ) - Удалены методы
toNormalized,times(float)иdiv(float)класса Quaternion. Эти методы избыточны, поскольку все кватернионы нормализуются во время создания объекта, а также учитывая неизменяемость класса. ( l558fc , b/460210457 )
Исправлены ошибки
- Добавлена документация к
Session.create, иллюстрирующая, как избежать создания сессии в основном потоке приложения. ( le5554 , b/463687170 ) - Запрещено создание приложениями
BoundingBoxсо значениемNaN. ( l58c14 , b/464025895 )
Версия 1.0.0-alpha09
3 декабря 2025 г.
Выпущена версия androidx.xr.runtime:runtime-*:1.0.0-alpha09 . Версия 1.0.0-alpha09 содержит следующие коммиты .
Версия 1.0.0-alpha08
19 ноября 2025 г.
Выпущена версия androidx.xr.runtime:runtime-*:1.0.0-alpha08 . Версия 1.0.0-alpha08 содержит следующие коммиты .
Новые функции
- Добавлено
XrDeviceдля предоставления информации о возможностях устройства. ( Ic9d1f ) - Добавлен новый API
ConfigMode.isSupportedдля запроса возможностей сессии. ( Iff7af ) - Добавлен API
XrDisplay.BlendMode. ( I484e4 )
Изменения в API
- Переименована функция [XrDevice.getPreferredBlendMode] в [XrDevice.getPreferredDisplayBlendMode]. ( I7e48f )
Версия 1.0.0-alpha07
22 октября 2025 г.
Выпущена версия androidx.xr.runtime:runtime-*:1.0.0-alpha07 . Версия 1.0.0-alpha07 содержит следующие коммиты .
Изменения в API
- Удалите
SessionConfigureConfigureNotSupportedи замените его наUnsupportedOperationException. ( I7680f )
Версия 1.0.0-alpha06
24 сентября 2025 г.
Выпущена версия androidx.xr.runtime:runtime-*:1.0.0-alpha06 . Версия 1.0.0-alpha06 содержит следующие коммиты .
Изменения в API
-
HandJointTypeперемещен из xr:xr:runtime:runtimexr:arcore:arcore. ( Iadb9c , b/409058039 ) - Изменение оператора умножения для
componentWiseMultiplicationвVector2,Vector3,Vector4на scale и удаление символа оператора для согласованности с другими математическими библиотеками. Также удалениеcomponentWiseDivisionиз классов Vector вместо использованияVector.scale(otherVector.inverse()). ( I8e1f6 , b/399146447 ) - Добавление [unscaled] позволяет получить матрицу с масштабом, равным единице. ( I6381d , b/434928658 )
-
:xr:runtime:runtime-guavaбудет удален, так какCoroutines.ktзаменен наSuspendtoFutureAdapter. ( I0cd3c , b/406597902 )
Версия 1.0.0-alpha05
30 июля 2025 г.
Выпущена версия androidx.xr.runtime:runtime-*:1.0.0-alpha05 . Версия 1.0.0-alpha05 содержит следующие коммиты .
Новые функции
- Добавить
HandJointTypeиTrackingState. ( I55880 , b/334645808 ) - Сделать реализацию Config общедоступной. ( I95860 , b/334645808 )
- Введены новые типы данных
SessionCreateResultиSessionConfigureResult. ( Icb8cb , b/334645808 ) - Добавьте новый класс
BoundingBox, представляющий собой выровненный по осям ограничивающий прямоугольник в трехмерном пространстве, определяемый его минимальными и максимальными угловыми точками. ( Ic68c5 , b/423073468 )
Изменения в API
- Переименован и перемещен
androidx.xr.scenecore.PixelDimensionsвandroidx.xr.runtime.math.IntSize2d. Переименован и перемещенandroidx.xr.scenecore.Dimensionsвandroidx.xr.runtime.math.FloatSize3d. Переименованandroidx.xr.scenecore.PlaneTypeвandroidx.xr.scenecore.PlaneOrientation. Переименованandroidx.xr.scenecore.PlaneSemanticвandroidx.xr.scenecore.PlaneSemanticType. ( Ifd405 , b/416456228 ) - Удалён класс
androidx.xr.runtime.FoV. Используйте вместо негоandroidx.xr.runtime.FieldOfView. ( I9ae27 ) - Добавлена дополнительная перегрузка для
Session.create, которая может предоставитьLifecycleOwnerдля привязки сессии. Обратите внимание, что для управления ресурсами по-прежнему необходимо указывать Activity, а область действияLifecycleOwnerдолжна быть ограничена Activity. ( I1690b ) - Переименована
FakeRuntimeAnchor.anchorsCreatedвanchorsCreatedCount( I96df9 , b/424441218 ) - Значения параметров Config
*Modeбыли переименованы в соответствии с их поведением. ( I6d247 , b/414648065 ) - Для использования проектов, выпущенных с Kotlin 2.0, требуется KGP 2.0.0 или более поздняя версия ( Idb6b5 , b/344563182 ).
- API, связанные со строками манифеста, были перемещены из
:xr:runtime:runtimeв:xr:runtime:runtime-manifest. Название пакета изменилось сandroidx.xr.runtimeнаandroidx.xr.runtime.manifest. ( I610ad , b/418800249 ) -
Session.resume(),Session.pause()иSession.destroy()были удалены из API. Session больше не являетсяLifecycleOwner. Жизненный цикл Session теперь будет привязан к жизненному циклу Activity, переданной вSession.create(). ( I28a03 ) - This library now uses JSpecify nullness annotations , which are type-use. Kotlin developers should use the following compiler argument to enforce correct usage:
-Xjspecify-annotations=strict(this is the default starting with version 2.1.0 of the Kotlin compiler) ( Ia8420 , b/326456246 ) - The main Runtime artifact (
:xr:runtime:runtime) will only contain Kolin-style async APIs. Java developers can depend on:xr:runtime:runtime-guavato access compatible APIs. ( I05d4a , b/426639315 ) - The main Runtime artifact (
:xr:runtime:runtime) will only contain Kotlin-style async APIs. Java developers can depend on thexr:runtime:runtime-rxjava3library to access compatible APIs. ( I64122 , b/426639775 ) - Move Coroutines to
:xr:runtime:runtime-guavaand Flows to:xr:runtime:runtime-rxjava3. ( I60ae9 ) -
Session.createandSession.configurenow throwSecurityExceptionwhen sufficient permissions have not been granted instead of returningSessionCreatePermissionsNotGrantedorSessionConfigurePermissionsNotGranted. ( I7c488 , b/430651879 )
Version 1.0.0-alpha04
7 мая 2025 г.
androidx.xr.runtime:runtime:1.0.0-alpha04 , androidx.xr.runtime:runtime-openxr:1.0.0-alpha04 , and androidx.xr.runtime:runtime-testing:1.0.0-alpha04 are released. Version 1.0.0-alpha04 contains these commits .
Новые функции
- Session now implements
androidx.lifecycle.LifecycleOwnerfor more interoperability with existing Android lifecycle paradigms. - Manifest strings for Android XR are specified and documented here.
- Spatial Visibility Callback extension methods added to monitor when the scene content moves inside or outside the user's field of view.
- Added a stub version of the
JxrPlatformAdapter(and all its related classes). - Session will be used in both
SceneCoreand Runtime instead of the Session inSceneCore. -
ActivityPose.hitTestwas added, enabling ahitTestagainst virtual content. - Specifying multiple Runtime implementations at compile time is now supported. Only one will be loaded at execution time based on the current device's feature set.
- Added new Component type
SpatialPointerComponent, allowing clients to specify the icon rendered for the pointer, or to disable the icon. This Component can currently be attached toPanelEntityinstances only.
Изменения в API
- Make Config implementation public. ( I95860 )
- Add
HandJointTypeandTrackingState. ( I55880 ) - Projects released with Kotlin 2.0 require KGP 2.0.0 or newer to be consumed ( Idb6b5 )
-
Hand.isActive (boolean)has been changed toHand.trackingState. TheOpenXRimplementation has been modified accordingly. -
android.permission.SCENE_UNDERSTANDINGpermission requirement inSession.configurehas been changed toandroid.permission.SCENE_UNDERSTANDING_COARSE. -
LifecycleManager.configureis implemented and now passes in aConfigobject which contains a property for each configurable runtime feature. -
Session.configurecan now be called with aConfigin order to configure the available runtime features. -
Session.createnow supports passing aCoroutineContextinstead of aCoroutineDispatcher. -
Session.createsupports loadingARCorefor Jetpack XR and/orSceneCore. At least one must be provided (testing versions are available). -
FakePerceptionManagerthrows anAnchorInvalidUuidExceptionwhen an invalid UUID is passed toAnchor.loadandAnchor.unpersist. -
CoreStateis no longer a data class.
Исправлены ошибки
- Fixed Runtime proguard configurations.
Version 1.0.0-alpha03
26 февраля 2025 г.
androidx.xr.runtime:runtime:1.0.0-alpha03 , androidx.xr.runtime:runtime-openxr:1.0.0-alpha03 , and androidx.xr.runtime:runtime-testing:1.0.0-alpha03 are released with no notable changes since the last alpha. Version 1.0.0-alpha03 contains these commits .
Version 1.0.0-alpha02
12 февраля 2025 г.
androidx.xr.runtime:runtime:1.0.0-alpha02 , androidx.xr.runtime:runtime-openxr:1.0.0-alpha02 , and androidx.xr.runtime:runtime-testing:1.0.0-alpha02 are released. Version 1.0.0-alpha02 contains these commits .
Breaking & behavioral changes
-
OpenXRruntime functions that return an Anchor now throwAnchorResourcesExhaustedExceptionif they encounter an error code notifying that theOpenXRresource limit has been reached. - Permission
android.permission.HAND_TRACKINGis now required forSession.createandSession.resume.
Новые функции
- Added hand tracking support.
Исправлены ошибки
- Creating anchors is more stable when running on an emulator
Version 1.0.0-alpha01
12 декабря 2024 г.
androidx.xr.runtime:runtime-* 1.0.0-alpha01 is released.
Features of Initial Release
Initial release of Jetpack XR Runtime. This library contains fundamental pieces of functionality for the Jetpack XR suite of libraries. This includes capability discovery, lifecycle management, configuration, and more. The Runtime library provides different variations (eg runtime-openxr or runtime-testing ) depending on the execution platform. Additionally, this library offers fundamental math abstractions such as Vector3 and Matrix4 that are used across the entire Jetpack XR API surface.
Session: Provides you with fine-grained controls over the XR system, including deciding when processing is and is not being executed and the overall configuration. It is also the handle that you will use across all other APIs to unlock the underlying system capabilities.Pose: A location in an arbitrary coordinate system that has a position and orientation associated with it. You will use this class to communicate the location of objects with ARCore for Jetpack XR and Jetpack SceneCore.
Известные проблемы
-
configureis currently a no-op. Future releases will add new settings that you can use to control the behavior of theSession.
XR Runtime
| Последнее обновление | Стабильный релиз | Предварительная версия релиза | Бета-версия | Альфа-версия |
|---|---|---|---|---|
| 9 сентября 2026 г. | - | 1.0.0-rc01 | - | 1.1.0-alpha01 |
Объявление зависимостей
To add a dependency on XR runtime, you must add the Google Maven repository to your project. Read Google's Maven repository for more information.
Add the dependencies for the artifacts you need in the build.gradle file for your app or module:
классный
dependencies { implementation "androidx.xr.runtime:runtime:1.1.0-alpha01" // Use in environments that do not support OpenXR testImplementation "androidx.xr.runtime:runtime-testing:1.1.0-alpha01" }
Котлин
dependencies { implementation("androidx.xr.runtime:runtime:1.1.0-alpha01") // Use in environments that do not support OpenXR testImplementation("androidx.xr.runtime:runtime-testing:1.1.0-alpha01") }
For more information about dependencies, see Add build dependencies .
Обратная связь
Your feedback helps make Jetpack better. Let us know if you discover new issues or have ideas for improving this library. Please take a look at the existing issues in this library before you create a new one. You can add your vote to an existing issue by clicking the star button.
See the Issue Tracker documentation for more information.
Версия 1.1
Version 1.1.0-alpha01
9 сентября 2026 г.
androidx.xr.runtime:runtime-*:1.1.0-alpha01 is released. Version 1.1.0-alpha01 contains these commits .
Изменения в API
- Add SPATIAL_API_V4 to
SpatialApiVersions( I71e7a )
Версия 1.0
Version 1.0.0-rc01
9 сентября 2026 г.
androidx.xr.runtime:runtime-*:1.0.0-rc01 is released. Version 1.0.0-rc01 contains these commits .
Behavior Changes
Version 1.0.0-beta02
12 августа 2026 г.
androidx.xr.runtime:runtime-*:1.0.0-beta02 is released. Version 1.0.0-beta02 contains these commits .
Исправлены ошибки
- Improved the detection of
OpenXRsupport in emulated environments. ( Ifec51 ) - Implemented
toString()in more classes for debugging. ( I67d83 ) - Fix
XrDeviceTestRuleto work whenXrDeviceis created after applying settings. ( Ica32c )
Version 1.0.0-beta01
15 июля 2026 г.
androidx.xr.runtime:runtime-*:1.0.0-beta01 is released. Version 1.0.0-beta01 contains these commits .
Изменения в API
- Added
SessionTestRuleto runtime-testing. This API ( I672bc , b/516876144 ) - Converted Session.create to a suspend function. ( I5d27f )
- Added support for the lifecycle to the
XrDeviceTestRule( I2319c , b/512140272 ) - Removed unused
ExperimentalXrDeviceLifecycleApiexperimental opt-in annotation. ( I46d95 ) - Add specialized overrides of
toString()for a number of runtime types. These types are intended to provide additional information to developers for debugging purposes and are not intended to be used in production or shipped applications.
Исправлены ошибки
- Fixed Pose.
fromLookAtforward direction alignment, corrected scale extraction in Matrix3, and prevented numericalNaNsin normalization, axis-angle conversion, andangleBetweencalculations. ( I7a3b5 , b/367780918 )
Version 1.0.0-alpha15
17 июня 2026 г.
androidx.xr.runtime:runtime-*:1.0.0-alpha15 is released. Version 1.0.0-alpha15 contains these commits .
Изменения в API
- Added test API for
isProjectedServiceAvailable()( I44ba1 ) - Exposed
DeviceTrackingMode.INERTIALas a public experimental API under the new@ExperimentalInertialTrackingApiannotation. ( Ic3df3 ) - Added
Config.Builder. Apps can create custom configurations by calling setter functions on the builder object and then callingBuilder.build. ( I13142 ) -
androidx.xr.runtime.FieldOfViewhas been removed. Apps should useandroidx.xr.runtime.math.FieldOfViewinstead. ( I621ef ) -
Session.createis now required to be ran on a@WorkerThread. ( I2169e ) - Added
isProjectedServiceAvailable()to theXrDevice( I507e9 ) - Renaming
DeviceTrackingMode.SPATIAL_LAST_KNOWNtoDeviceTrackingMode.SPATIALandDeviceTrackingMode.INERTIAL_LAST_KNOWNtoDeviceTrackingMode.INERTIAL( I96f8b ) -
Vector3.angleBetweenandVector4.angleBetweennow return degrees rather than radians. ( Ica8bc ) - Added
QrCodeAPI ( Ia0bbe )
Version 1.0.0-alpha14
19 мая 2026 г.
androidx.xr.runtime:runtime-*:1.0.0-alpha14 is released. Version 1.0.0-alpha14 contains these commits .
Изменения в API
- Deprecating
GeospatialMode.VPS_AND_GPSin favor ofGeospatialMode.SPATIALand introducing a new lower-power tracking mode,GeospatialMode.INERTIAL, which uses only IMU and GPS. ( I1e6cd ) - Removes deprecation tag on
androidx.xr.runtime.FieldOfView. Makesandroidx.xr.runtime.math.FieldOfViewa type aliaas ofandroidx.xr.runtime.FieldOfViewin preparation for the latter's removal in the next release. Clients must migrate to theandroidx.xr.runtime.mathversion wherever they are using theandroidx.xr.runtimeversion. ( I6ce15 ) - Added the
PreviewProjectedApiannotation ( Ic49f6 ) - Removed
AugmentedObjectCategory.allSupported( I08656 ) - Adding APIs in
XrDevicefor determining device support for hand tracking, eye tracking, depth estimation, geospatial, and rendering. ( I00696 ) -
Session.getNativeDatahas been replaced withXrDevice.getNativeInstanceDataandSession.getNativeSessionData. ( Ieb077 ) - Annotated
DeviceTrackingMode.INERTIAL_LAST_KNOWNwith@PreviewSpatialApi. ( I99868 ) - Added
XrDeviceTestRulefor its use in unit tests. ( I87584 ) - Adding
CATEGORY_XR_PROJECTED_LAUNCHER, this constant is used in the Manifest file to indicate the activity should be discovered as a launcher by the system. ( Ia3069 )
External Contribution
- Add
AugmentedImageModeto theConfigAPI ( I0cf09 )
Version 1.0.0-alpha13
6 мая 2026 г.
androidx.xr.runtime:runtime-*:1.0.0-alpha13 is released. Version 1.0.0-alpha13 contains these commits .
Изменения в API
-
TrackingStateandVpsAvailabilityResulthave moved to theandroidx.xr.arcore package, and the types inandroidx.xr.runtimeare now deprecated. ( Ic7930 , b/480462213 ) -
Session.getNativeData()is now defined thexr:runtime:runtimemodule and provides [nativeFunctionTablePointer] for OpenXR-backed runtimes. ( Ifa862 ) - Moved
NativeDataAPI toxr:runtime:runtimelibrary. ( I87954 , b/494251500 ) -
Session.createandSession.configureare now non-exhaustive and require else clauses in when statements. ( I9885e , b/495805998 , b/495805998 ) -
androidx.xr.runtime.FieldOfViewhas been deprecated. Useandroidx.xr.runtime.math.FieldOfViewinstead. ( Ia01a0 , b/480233045 ) -
Matrix4.posehas been renamed toMatrix4.toPose(). The pose property is now deprecated. ( I329b4 , b/493383490 ) - Added the
XrServiceAvailabilityAPI ( If379e , b/493558010 ) - Added the
ExperimentalXrServiceAvailabilityApiannotation ( Icab49 , b/491069725 ) - Remove the suffix for
@PreviewSpatialApi( If5242 , b/491939311 ) - Renamed
DeviceTrackingMode.LAST_KNOWNtoSPATIAL_LAST_KNOWN(with a deprecated fallback), addedINERTIAL_LAST_KNOWNfor 3DoF tracking, and addedTRACKING_DEGRADEDtoTrackingState. ( Ie661c , b/445466590 ) - Added
XrLogAPI. SetXrLog.isEnabledtotrueto enable logging in JetpackXR, and use [XrLog.Level] to set the log level. ( I76a1f , b/463460895 , b/487378441 ) - Adding
DISPLAY_CATEGORY_XR_PROJECTED, this constant is used in the Manifest file to indicate the activity is meant for a XR projected display ( I26d8b )
Version 1.0.0-alpha12
25 марта 2026 г.
androidx.xr.runtime:runtime-*:1.0.0-alpha12 is released. Version 1.0.0-alpha12 contains these commits .
Изменения в API
- Changed
Config.augmentedObjectCategoriesfrom a List to a Set, ( I25a64 , b/487376359 ) - Removed
unscaledGravityAlignedActivitySpaceflag fromSession.create.ActivitySpaceis always unscaled and gravity-aligned now. ( If6f11 , b/458173423 ) - Added
Session.createoverload to allow passing an Android Context for resource-scoping. ( I7d3fe , b/415805990 , b/477386334 ) - Added
JvmOverloadstoFloatSize2d.to3d,Matrix3.copy, andMatrix4.copy( I69586 , b/481371562 ) - Added ability to set categories for
AugmentedObjecttracking in the Config ( I1f6e4 , b/480220930 ) - Added
xr:runtime:runtime-interfacesmodule. ( I52ac6 , b/461561664 )
Version 1.0.0-alpha11
25 февраля 2026 г.
androidx.xr.runtime:runtime-*:1.0.0-alpha11 is released. Version 1.0.0-alpha11 contains these commits .
Изменения в API
- Restricted
ConfigModeinterface to internal use ( Ibfb87 ) - Moved
androidx.xr.runtime.Config.GeospatialModeto package level ( Ibe682 ) - Moved
androidx.xr.runtime.Config.FaceTrackingModeto package level ( Iac501 ) - Moved
androidx.xr.runtime.Config.AnchorPersistenceModeto package level ( I0360f ) - Moved
androidx.xr.runtime.Config.DepthEstimationModeto package level ( I7e3e9 ) - Moved
androidx.xr.runtime.Config.DeviceTrackingModeto package level ( I3aacd ) - Moved
androidx.xr.runtime.Config.HandTrackingModeto package level ( I658f3 ) - Moved
androidx.xr.runtime.Config.PlaneTrackingModeto package level ( Ia251b ) - Moved
androidx.xr.runtime.XrDevice.DisplayBlendModeto package level ( I6f333 ) - Added a factory method to create an
XrDeviceusing a Context, Session and aCoroutineContext. ( I139c5 ) - Added
SpatialApiVersionHelperto help query the runtime version of Android XR available on the platform. ( I7c53c ) - Added
xr:runtime:runtime-openxrmodule ( Ib42ea )
Version 1.0.0-alpha10
28 января 2026 г.
androidx.xr.runtime:runtime-*:1.0.0-alpha10 is released. Version 1.0.0-alpha10 contains these commits .
Изменения в API
-
ConfigMode.HeadTrackingModeis replaced withConfigMode.DeviceTrackingMode. ( le273e , b/467150206 ) - Removed Quaternion's
toNormalized,times(float),div(float)methods. These methods are redundant given that all Quaternions are normalized at construction time and given that the class is immutable. ( l558fc , b/460210457 )
Исправлены ошибки
- Added documentation to
Session.createthat illustrates how to avoid creating a session on the application's main thread. ( le5554 , b/463687170 ) - Prevented applications from creating a
BoundingBoxwith aNaNvalue. ( l58c14 , b/464025895 )
Version 1.0.0-alpha09
December 03, 2025
androidx.xr.runtime:runtime-*:1.0.0-alpha09 is released. Version 1.0.0-alpha09 contains these commits .
Version 1.0.0-alpha08
19 ноября 2025 г.
androidx.xr.runtime:runtime-*:1.0.0-alpha08 is released. Version 1.0.0-alpha08 contains these commits .
Новые функции
-
XrDeviceadded to provide information about device capabilities. ( Ic9d1f ) - Added new
ConfigMode.isSupportedAPI for querying session capabilities. ( Iff7af ) - Added
XrDisplay.BlendModeAPI. ( I484e4 )
Изменения в API
- Renamed [XrDevice.getPreferredBlendMode] to [XrDevice.getPreferredDisplayBlendMode]. ( I7e48f )
Version 1.0.0-alpha07
22 октября 2025 г.
androidx.xr.runtime:runtime-*:1.0.0-alpha07 is released. Version 1.0.0-alpha07 contains these commits .
Изменения в API
- Remove
SessionConfigureConfigureNotSupportedand replace it withUnsupportedOperationException. ( I7680f )
Version 1.0.0-alpha06
24 сентября 2025 г.
androidx.xr.runtime:runtime-*:1.0.0-alpha06 is released. Version 1.0.0-alpha06 contains these commits .
Изменения в API
-
HandJointTypehas been moved toxr:arcore:arcorefromxr:runtime:runtime. ( Iadb9c , b/409058039 ) - Changing the times operator for
componentWiseMultiplicationforVector2,Vector3,Vector4to scale and removing the operator symbol for consistency with other math libraries. Also removingcomponentWiseDivisionfrom the Vector classes in lieu of usingVector.scale(otherVector.inverse()). ( I8e1f6 , b/399146447 ) - Adding [unscaled] to return a Matrix with a scale of one. ( I6381d , b/434928658 )
-
:xr:runtime:runtime-guavawill be removed asCoroutines.kthas been replaced withSuspendtoFutureAdapter. ( I0cd3c , b/406597902 )
Version 1.0.0-alpha05
30 июля 2025 г.
androidx.xr.runtime:runtime-*:1.0.0-alpha05 is released. Version 1.0.0-alpha05 contains these commits .
Новые функции
- Add
HandJointTypeandTrackingState. ( I55880 , b/334645808 ) - Make Config implementation public. ( I95860 , b/334645808 )
- Introduced new
SessionCreateResultandSessionConfigureResulttypes. ( Icb8cb , b/334645808 ) - Add a new
BoundingBoxclass that represents an axis-aligned bounding box in 3D space, defined by its minimum and maximum corner points. ( Ic68c5 , b/423073468 )
Изменения в API
- Renamed and moved
androidx.xr.scenecore.PixelDimensionstoandroidx.xr.runtime.math.IntSize2d. Renamed and movedandroidx.xr.scenecore.Dimensionstoandroidx.xr.runtime.math.FloatSize3d. Renamedandroidx.xr.scenecore.PlaneTypetoandroidx.xr.scenecore.PlaneOrientation. Renamedandroidx.xr.scenecore.PlaneSemantictoandroidx.xr.scenecore.PlaneSemanticType. ( Ifd405 , b/416456228 ) - Removed
androidx.xr.runtime.FoVclass. Useandroidx.xr.runtime.FieldOfViewinstead. ( I9ae27 ) - Added an additional overload for
Session.createwhich can provide aLifecycleOwnerfor the Session to attach to. Note that an Activity will still need to be provided for resource ownership and theLifecycleOwnermust be scoped within the Activity. ( I1690b ) - Renamed
FakeRuntimeAnchor.anchorsCreatedtoanchorsCreatedCount( I96df9 , b/424441218 ) - Config
*Modevals have been renamed to reflect their behavior. ( I6d247 , b/414648065 ) - Projects released with Kotlin 2.0 require KGP 2.0.0 or newer to be consumed ( Idb6b5 , b/344563182 )
- APIs related to manifest strings have been moved from
:xr:runtime:runtimeto:xr:runtime:runtime-manifest. The package name has changed fromandroidx.xr.runtimetoandroidx.xr.runtime.manifest. ( I610ad , b/418800249 ) -
Session.resume(),Session.pause(), andSession.destroy()have been removed from the API surface. Session is no longer aLifecycleOwner. The Session's lifecycle will now be attached to the lifecycle of the Activity passed inSession.create(). ( I28a03 ) - This library now uses JSpecify nullness annotations , which are type-use. Kotlin developers should use the following compiler argument to enforce correct usage:
-Xjspecify-annotations=strict(this is the default starting with version 2.1.0 of the Kotlin compiler) ( Ia8420 , b/326456246 ) - The main Runtime artifact (
:xr:runtime:runtime) will only contain Kolin-style async APIs. Java developers can depend on:xr:runtime:runtime-guavato access compatible APIs. ( I05d4a , b/426639315 ) - The main Runtime artifact (
:xr:runtime:runtime) will only contain Kotlin-style async APIs. Java developers can depend on thexr:runtime:runtime-rxjava3library to access compatible APIs. ( I64122 , b/426639775 ) - Move Coroutines to
:xr:runtime:runtime-guavaand Flows to:xr:runtime:runtime-rxjava3. ( I60ae9 ) -
Session.createandSession.configurenow throwSecurityExceptionwhen sufficient permissions have not been granted instead of returningSessionCreatePermissionsNotGrantedorSessionConfigurePermissionsNotGranted. ( I7c488 , b/430651879 )
Version 1.0.0-alpha04
7 мая 2025 г.
androidx.xr.runtime:runtime:1.0.0-alpha04 , androidx.xr.runtime:runtime-openxr:1.0.0-alpha04 , and androidx.xr.runtime:runtime-testing:1.0.0-alpha04 are released. Version 1.0.0-alpha04 contains these commits .
Новые функции
- Session now implements
androidx.lifecycle.LifecycleOwnerfor more interoperability with existing Android lifecycle paradigms. - Manifest strings for Android XR are specified and documented here.
- Spatial Visibility Callback extension methods added to monitor when the scene content moves inside or outside the user's field of view.
- Added a stub version of the
JxrPlatformAdapter(and all its related classes). - Session will be used in both
SceneCoreand Runtime instead of the Session inSceneCore. -
ActivityPose.hitTestwas added, enabling ahitTestagainst virtual content. - Specifying multiple Runtime implementations at compile time is now supported. Only one will be loaded at execution time based on the current device's feature set.
- Added new Component type
SpatialPointerComponent, allowing clients to specify the icon rendered for the pointer, or to disable the icon. This Component can currently be attached toPanelEntityinstances only.
Изменения в API
- Make Config implementation public. ( I95860 )
- Add
HandJointTypeandTrackingState. ( I55880 ) - Projects released with Kotlin 2.0 require KGP 2.0.0 or newer to be consumed ( Idb6b5 )
-
Hand.isActive (boolean)has been changed toHand.trackingState. TheOpenXRimplementation has been modified accordingly. -
android.permission.SCENE_UNDERSTANDINGpermission requirement inSession.configurehas been changed toandroid.permission.SCENE_UNDERSTANDING_COARSE. -
LifecycleManager.configureis implemented and now passes in aConfigobject which contains a property for each configurable runtime feature. -
Session.configurecan now be called with aConfigin order to configure the available runtime features. -
Session.createnow supports passing aCoroutineContextinstead of aCoroutineDispatcher. -
Session.createsupports loadingARCorefor Jetpack XR and/orSceneCore. At least one must be provided (testing versions are available). -
FakePerceptionManagerthrows anAnchorInvalidUuidExceptionwhen an invalid UUID is passed toAnchor.loadandAnchor.unpersist. -
CoreStateis no longer a data class.
Исправлены ошибки
- Fixed Runtime proguard configurations.
Version 1.0.0-alpha03
26 февраля 2025 г.
androidx.xr.runtime:runtime:1.0.0-alpha03 , androidx.xr.runtime:runtime-openxr:1.0.0-alpha03 , and androidx.xr.runtime:runtime-testing:1.0.0-alpha03 are released with no notable changes since the last alpha. Version 1.0.0-alpha03 contains these commits .
Version 1.0.0-alpha02
12 февраля 2025 г.
androidx.xr.runtime:runtime:1.0.0-alpha02 , androidx.xr.runtime:runtime-openxr:1.0.0-alpha02 , and androidx.xr.runtime:runtime-testing:1.0.0-alpha02 are released. Version 1.0.0-alpha02 contains these commits .
Breaking & behavioral changes
-
OpenXRruntime functions that return an Anchor now throwAnchorResourcesExhaustedExceptionif they encounter an error code notifying that theOpenXRresource limit has been reached. - Permission
android.permission.HAND_TRACKINGis now required forSession.createandSession.resume.
Новые функции
- Added hand tracking support.
Исправлены ошибки
- Creating anchors is more stable when running on an emulator
Version 1.0.0-alpha01
12 декабря 2024 г.
androidx.xr.runtime:runtime-* 1.0.0-alpha01 is released.
Features of Initial Release
Initial release of Jetpack XR Runtime. This library contains fundamental pieces of functionality for the Jetpack XR suite of libraries. This includes capability discovery, lifecycle management, configuration, and more. The Runtime library provides different variations (eg runtime-openxr or runtime-testing ) depending on the execution platform. Additionally, this library offers fundamental math abstractions such as Vector3 and Matrix4 that are used across the entire Jetpack XR API surface.
Session: Provides you with fine-grained controls over the XR system, including deciding when processing is and is not being executed and the overall configuration. It is also the handle that you will use across all other APIs to unlock the underlying system capabilities.Pose: A location in an arbitrary coordinate system that has a position and orientation associated with it. You will use this class to communicate the location of objects with ARCore for Jetpack XR and Jetpack SceneCore.
Известные проблемы
-
configureis currently a no-op. Future releases will add new settings that you can use to control the behavior of theSession.
XR Runtime
| Последнее обновление | Стабильный релиз | Предварительная версия релиза | Бета-версия | Альфа-версия |
|---|---|---|---|---|
| 9 сентября 2026 г. | - | 1.0.0-rc01 | - | 1.1.0-alpha01 |
Объявление зависимостей
To add a dependency on XR runtime, you must add the Google Maven repository to your project. Read Google's Maven repository for more information.
Add the dependencies for the artifacts you need in the build.gradle file for your app or module:
классный
dependencies { implementation "androidx.xr.runtime:runtime:1.1.0-alpha01" // Use in environments that do not support OpenXR testImplementation "androidx.xr.runtime:runtime-testing:1.1.0-alpha01" }
Котлин
dependencies { implementation("androidx.xr.runtime:runtime:1.1.0-alpha01") // Use in environments that do not support OpenXR testImplementation("androidx.xr.runtime:runtime-testing:1.1.0-alpha01") }
For more information about dependencies, see Add build dependencies .
Обратная связь
Your feedback helps make Jetpack better. Let us know if you discover new issues or have ideas for improving this library. Please take a look at the existing issues in this library before you create a new one. You can add your vote to an existing issue by clicking the star button.
See the Issue Tracker documentation for more information.
Версия 1.1
Version 1.1.0-alpha01
9 сентября 2026 г.
androidx.xr.runtime:runtime-*:1.1.0-alpha01 is released. Version 1.1.0-alpha01 contains these commits .
Изменения в API
- Add SPATIAL_API_V4 to
SpatialApiVersions( I71e7a )
Версия 1.0
Version 1.0.0-rc01
9 сентября 2026 г.
androidx.xr.runtime:runtime-*:1.0.0-rc01 is released. Version 1.0.0-rc01 contains these commits .
Behavior Changes
Version 1.0.0-beta02
12 августа 2026 г.
androidx.xr.runtime:runtime-*:1.0.0-beta02 is released. Version 1.0.0-beta02 contains these commits .
Исправлены ошибки
- Improved the detection of
OpenXRsupport in emulated environments. ( Ifec51 ) - Implemented
toString()in more classes for debugging. ( I67d83 ) - Fix
XrDeviceTestRuleto work whenXrDeviceis created after applying settings. ( Ica32c )
Version 1.0.0-beta01
15 июля 2026 г.
androidx.xr.runtime:runtime-*:1.0.0-beta01 is released. Version 1.0.0-beta01 contains these commits .
Изменения в API
- Added
SessionTestRuleto runtime-testing. This API ( I672bc , b/516876144 ) - Converted Session.create to a suspend function. ( I5d27f )
- Added support for the lifecycle to the
XrDeviceTestRule( I2319c , b/512140272 ) - Removed unused
ExperimentalXrDeviceLifecycleApiexperimental opt-in annotation. ( I46d95 ) - Add specialized overrides of
toString()for a number of runtime types. These types are intended to provide additional information to developers for debugging purposes and are not intended to be used in production or shipped applications.
Исправлены ошибки
- Fixed Pose.
fromLookAtforward direction alignment, corrected scale extraction in Matrix3, and prevented numericalNaNsin normalization, axis-angle conversion, andangleBetweencalculations. ( I7a3b5 , b/367780918 )
Version 1.0.0-alpha15
17 июня 2026 г.
androidx.xr.runtime:runtime-*:1.0.0-alpha15 is released. Version 1.0.0-alpha15 contains these commits .
Изменения в API
- Added test API for
isProjectedServiceAvailable()( I44ba1 ) - Exposed
DeviceTrackingMode.INERTIALas a public experimental API under the new@ExperimentalInertialTrackingApiannotation. ( Ic3df3 ) - Added
Config.Builder. Apps can create custom configurations by calling setter functions on the builder object and then callingBuilder.build. ( I13142 ) -
androidx.xr.runtime.FieldOfViewhas been removed. Apps should useandroidx.xr.runtime.math.FieldOfViewinstead. ( I621ef ) -
Session.createis now required to be ran on a@WorkerThread. ( I2169e ) - Added
isProjectedServiceAvailable()to theXrDevice( I507e9 ) - Renaming
DeviceTrackingMode.SPATIAL_LAST_KNOWNtoDeviceTrackingMode.SPATIALandDeviceTrackingMode.INERTIAL_LAST_KNOWNtoDeviceTrackingMode.INERTIAL( I96f8b ) -
Vector3.angleBetweenandVector4.angleBetweennow return degrees rather than radians. ( Ica8bc ) - Added
QrCodeAPI ( Ia0bbe )
Version 1.0.0-alpha14
19 мая 2026 г.
androidx.xr.runtime:runtime-*:1.0.0-alpha14 is released. Version 1.0.0-alpha14 contains these commits .
Изменения в API
- Deprecating
GeospatialMode.VPS_AND_GPSin favor ofGeospatialMode.SPATIALand introducing a new lower-power tracking mode,GeospatialMode.INERTIAL, which uses only IMU and GPS. ( I1e6cd ) - Removes deprecation tag on
androidx.xr.runtime.FieldOfView. Makesandroidx.xr.runtime.math.FieldOfViewa type aliaas ofandroidx.xr.runtime.FieldOfViewin preparation for the latter's removal in the next release. Clients must migrate to theandroidx.xr.runtime.mathversion wherever they are using theandroidx.xr.runtimeversion. ( I6ce15 ) - Added the
PreviewProjectedApiannotation ( Ic49f6 ) - Removed
AugmentedObjectCategory.allSupported( I08656 ) - Adding APIs in
XrDevicefor determining device support for hand tracking, eye tracking, depth estimation, geospatial, and rendering. ( I00696 ) -
Session.getNativeDatahas been replaced withXrDevice.getNativeInstanceDataandSession.getNativeSessionData. ( Ieb077 ) - Annotated
DeviceTrackingMode.INERTIAL_LAST_KNOWNwith@PreviewSpatialApi. ( I99868 ) - Added
XrDeviceTestRulefor its use in unit tests. ( I87584 ) - Adding
CATEGORY_XR_PROJECTED_LAUNCHER, this constant is used in the Manifest file to indicate the activity should be discovered as a launcher by the system. ( Ia3069 )
External Contribution
- Add
AugmentedImageModeto theConfigAPI ( I0cf09 )
Version 1.0.0-alpha13
6 мая 2026 г.
androidx.xr.runtime:runtime-*:1.0.0-alpha13 is released. Version 1.0.0-alpha13 contains these commits .
Изменения в API
-
TrackingStateandVpsAvailabilityResulthave moved to theandroidx.xr.arcore package, and the types inandroidx.xr.runtimeare now deprecated. ( Ic7930 , b/480462213 ) -
Session.getNativeData()is now defined thexr:runtime:runtimemodule and provides [nativeFunctionTablePointer] for OpenXR-backed runtimes. ( Ifa862 ) - Moved
NativeDataAPI toxr:runtime:runtimelibrary. ( I87954 , b/494251500 ) -
Session.createandSession.configureare now non-exhaustive and require else clauses in when statements. ( I9885e , b/495805998 , b/495805998 ) -
androidx.xr.runtime.FieldOfViewhas been deprecated. Useandroidx.xr.runtime.math.FieldOfViewinstead. ( Ia01a0 , b/480233045 ) -
Matrix4.posehas been renamed toMatrix4.toPose(). The pose property is now deprecated. ( I329b4 , b/493383490 ) - Added the
XrServiceAvailabilityAPI ( If379e , b/493558010 ) - Added the
ExperimentalXrServiceAvailabilityApiannotation ( Icab49 , b/491069725 ) - Remove the suffix for
@PreviewSpatialApi( If5242 , b/491939311 ) - Renamed
DeviceTrackingMode.LAST_KNOWNtoSPATIAL_LAST_KNOWN(with a deprecated fallback), addedINERTIAL_LAST_KNOWNfor 3DoF tracking, and addedTRACKING_DEGRADEDtoTrackingState. ( Ie661c , b/445466590 ) - Added
XrLogAPI. SetXrLog.isEnabledtotrueto enable logging in JetpackXR, and use [XrLog.Level] to set the log level. ( I76a1f , b/463460895 , b/487378441 ) - Adding
DISPLAY_CATEGORY_XR_PROJECTED, this constant is used in the Manifest file to indicate the activity is meant for a XR projected display ( I26d8b )
Version 1.0.0-alpha12
25 марта 2026 г.
androidx.xr.runtime:runtime-*:1.0.0-alpha12 is released. Version 1.0.0-alpha12 contains these commits .
Изменения в API
- Changed
Config.augmentedObjectCategoriesfrom a List to a Set, ( I25a64 , b/487376359 ) - Removed
unscaledGravityAlignedActivitySpaceflag fromSession.create.ActivitySpaceis always unscaled and gravity-aligned now. ( If6f11 , b/458173423 ) - Added
Session.createoverload to allow passing an Android Context for resource-scoping. ( I7d3fe , b/415805990 , b/477386334 ) - Added
JvmOverloadstoFloatSize2d.to3d,Matrix3.copy, andMatrix4.copy( I69586 , b/481371562 ) - Added ability to set categories for
AugmentedObjecttracking in the Config ( I1f6e4 , b/480220930 ) - Added
xr:runtime:runtime-interfacesmodule. ( I52ac6 , b/461561664 )
Version 1.0.0-alpha11
25 февраля 2026 г.
androidx.xr.runtime:runtime-*:1.0.0-alpha11 is released. Version 1.0.0-alpha11 contains these commits .
Изменения в API
- Restricted
ConfigModeinterface to internal use ( Ibfb87 ) - Moved
androidx.xr.runtime.Config.GeospatialModeto package level ( Ibe682 ) - Moved
androidx.xr.runtime.Config.FaceTrackingModeto package level ( Iac501 ) - Moved
androidx.xr.runtime.Config.AnchorPersistenceModeto package level ( I0360f ) - Moved
androidx.xr.runtime.Config.DepthEstimationModeto package level ( I7e3e9 ) - Moved
androidx.xr.runtime.Config.DeviceTrackingModeto package level ( I3aacd ) - Moved
androidx.xr.runtime.Config.HandTrackingModeto package level ( I658f3 ) - Moved
androidx.xr.runtime.Config.PlaneTrackingModeto package level ( Ia251b ) - Moved
androidx.xr.runtime.XrDevice.DisplayBlendModeto package level ( I6f333 ) - Added a factory method to create an
XrDeviceusing a Context, Session and aCoroutineContext. ( I139c5 ) - Added
SpatialApiVersionHelperto help query the runtime version of Android XR available on the platform. ( I7c53c ) - Added
xr:runtime:runtime-openxrmodule ( Ib42ea )
Version 1.0.0-alpha10
28 января 2026 г.
androidx.xr.runtime:runtime-*:1.0.0-alpha10 is released. Version 1.0.0-alpha10 contains these commits .
Изменения в API
-
ConfigMode.HeadTrackingModeis replaced withConfigMode.DeviceTrackingMode. ( le273e , b/467150206 ) - Removed Quaternion's
toNormalized,times(float),div(float)methods. These methods are redundant given that all Quaternions are normalized at construction time and given that the class is immutable. ( l558fc , b/460210457 )
Исправлены ошибки
- Added documentation to
Session.createthat illustrates how to avoid creating a session on the application's main thread. ( le5554 , b/463687170 ) - Prevented applications from creating a
BoundingBoxwith aNaNvalue. ( l58c14 , b/464025895 )
Version 1.0.0-alpha09
December 03, 2025
androidx.xr.runtime:runtime-*:1.0.0-alpha09 is released. Version 1.0.0-alpha09 contains these commits .
Version 1.0.0-alpha08
19 ноября 2025 г.
androidx.xr.runtime:runtime-*:1.0.0-alpha08 is released. Version 1.0.0-alpha08 contains these commits .
Новые функции
-
XrDeviceadded to provide information about device capabilities. ( Ic9d1f ) - Added new
ConfigMode.isSupportedAPI for querying session capabilities. ( Iff7af ) - Added
XrDisplay.BlendModeAPI. ( I484e4 )
Изменения в API
- Renamed [XrDevice.getPreferredBlendMode] to [XrDevice.getPreferredDisplayBlendMode]. ( I7e48f )
Version 1.0.0-alpha07
22 октября 2025 г.
androidx.xr.runtime:runtime-*:1.0.0-alpha07 is released. Version 1.0.0-alpha07 contains these commits .
Изменения в API
- Remove
SessionConfigureConfigureNotSupportedand replace it withUnsupportedOperationException. ( I7680f )
Version 1.0.0-alpha06
24 сентября 2025 г.
androidx.xr.runtime:runtime-*:1.0.0-alpha06 is released. Version 1.0.0-alpha06 contains these commits .
Изменения в API
-
HandJointTypehas been moved toxr:arcore:arcorefromxr:runtime:runtime. ( Iadb9c , b/409058039 ) - Changing the times operator for
componentWiseMultiplicationforVector2,Vector3,Vector4to scale and removing the operator symbol for consistency with other math libraries. Also removingcomponentWiseDivisionfrom the Vector classes in lieu of usingVector.scale(otherVector.inverse()). ( I8e1f6 , b/399146447 ) - Adding [unscaled] to return a Matrix with a scale of one. ( I6381d , b/434928658 )
-
:xr:runtime:runtime-guavawill be removed asCoroutines.kthas been replaced withSuspendtoFutureAdapter. ( I0cd3c , b/406597902 )
Version 1.0.0-alpha05
30 июля 2025 г.
androidx.xr.runtime:runtime-*:1.0.0-alpha05 is released. Version 1.0.0-alpha05 contains these commits .
Новые функции
- Add
HandJointTypeandTrackingState. ( I55880 , b/334645808 ) - Make Config implementation public. ( I95860 , b/334645808 )
- Introduced new
SessionCreateResultandSessionConfigureResulttypes. ( Icb8cb , b/334645808 ) - Add a new
BoundingBoxclass that represents an axis-aligned bounding box in 3D space, defined by its minimum and maximum corner points. ( Ic68c5 , b/423073468 )
Изменения в API
- Renamed and moved
androidx.xr.scenecore.PixelDimensionstoandroidx.xr.runtime.math.IntSize2d. Renamed and movedandroidx.xr.scenecore.Dimensionstoandroidx.xr.runtime.math.FloatSize3d. Renamedandroidx.xr.scenecore.PlaneTypetoandroidx.xr.scenecore.PlaneOrientation. Renamedandroidx.xr.scenecore.PlaneSemantictoandroidx.xr.scenecore.PlaneSemanticType. ( Ifd405 , b/416456228 ) - Removed
androidx.xr.runtime.FoVclass. Useandroidx.xr.runtime.FieldOfViewinstead. ( I9ae27 ) - Added an additional overload for
Session.createwhich can provide aLifecycleOwnerfor the Session to attach to. Note that an Activity will still need to be provided for resource ownership and theLifecycleOwnermust be scoped within the Activity. ( I1690b ) - Renamed
FakeRuntimeAnchor.anchorsCreatedtoanchorsCreatedCount( I96df9 , b/424441218 ) - Config
*Modevals have been renamed to reflect their behavior. ( I6d247 , b/414648065 ) - Projects released with Kotlin 2.0 require KGP 2.0.0 or newer to be consumed ( Idb6b5 , b/344563182 )
- APIs related to manifest strings have been moved from
:xr:runtime:runtimeto:xr:runtime:runtime-manifest. The package name has changed fromandroidx.xr.runtimetoandroidx.xr.runtime.manifest. ( I610ad , b/418800249 ) -
Session.resume(),Session.pause(), andSession.destroy()have been removed from the API surface. Session is no longer aLifecycleOwner. The Session's lifecycle will now be attached to the lifecycle of the Activity passed inSession.create(). ( I28a03 ) - This library now uses JSpecify nullness annotations , which are type-use. Kotlin developers should use the following compiler argument to enforce correct usage:
-Xjspecify-annotations=strict(this is the default starting with version 2.1.0 of the Kotlin compiler) ( Ia8420 , b/326456246 ) - The main Runtime artifact (
:xr:runtime:runtime) will only contain Kolin-style async APIs. Java developers can depend on:xr:runtime:runtime-guavato access compatible APIs. ( I05d4a , b/426639315 ) - The main Runtime artifact (
:xr:runtime:runtime) will only contain Kotlin-style async APIs. Java developers can depend on thexr:runtime:runtime-rxjava3library to access compatible APIs. ( I64122 , b/426639775 ) - Move Coroutines to
:xr:runtime:runtime-guavaand Flows to:xr:runtime:runtime-rxjava3. ( I60ae9 ) -
Session.createandSession.configurenow throwSecurityExceptionwhen sufficient permissions have not been granted instead of returningSessionCreatePermissionsNotGrantedorSessionConfigurePermissionsNotGranted. ( I7c488 , b/430651879 )
Version 1.0.0-alpha04
7 мая 2025 г.
androidx.xr.runtime:runtime:1.0.0-alpha04 , androidx.xr.runtime:runtime-openxr:1.0.0-alpha04 , and androidx.xr.runtime:runtime-testing:1.0.0-alpha04 are released. Version 1.0.0-alpha04 contains these commits .
Новые функции
- Session now implements
androidx.lifecycle.LifecycleOwnerfor more interoperability with existing Android lifecycle paradigms. - Manifest strings for Android XR are specified and documented here.
- Spatial Visibility Callback extension methods added to monitor when the scene content moves inside or outside the user's field of view.
- Added a stub version of the
JxrPlatformAdapter(and all its related classes). - Session will be used in both
SceneCoreand Runtime instead of the Session inSceneCore. -
ActivityPose.hitTestwas added, enabling ahitTestagainst virtual content. - Specifying multiple Runtime implementations at compile time is now supported. Only one will be loaded at execution time based on the current device's feature set.
- Added new Component type
SpatialPointerComponent, allowing clients to specify the icon rendered for the pointer, or to disable the icon. This Component can currently be attached toPanelEntityinstances only.
Изменения в API
- Make Config implementation public. ( I95860 )
- Add
HandJointTypeandTrackingState. ( I55880 ) - Projects released with Kotlin 2.0 require KGP 2.0.0 or newer to be consumed ( Idb6b5 )
-
Hand.isActive (boolean)has been changed toHand.trackingState. TheOpenXRimplementation has been modified accordingly. -
android.permission.SCENE_UNDERSTANDINGpermission requirement inSession.configurehas been changed toandroid.permission.SCENE_UNDERSTANDING_COARSE. -
LifecycleManager.configureis implemented and now passes in aConfigobject which contains a property for each configurable runtime feature. -
Session.configurecan now be called with aConfigin order to configure the available runtime features. -
Session.createnow supports passing aCoroutineContextinstead of aCoroutineDispatcher. -
Session.createsupports loadingARCorefor Jetpack XR and/orSceneCore. At least one must be provided (testing versions are available). -
FakePerceptionManagerthrows anAnchorInvalidUuidExceptionwhen an invalid UUID is passed toAnchor.loadandAnchor.unpersist. -
CoreStateis no longer a data class.
Исправлены ошибки
- Fixed Runtime proguard configurations.
Version 1.0.0-alpha03
26 февраля 2025 г.
androidx.xr.runtime:runtime:1.0.0-alpha03 , androidx.xr.runtime:runtime-openxr:1.0.0-alpha03 , and androidx.xr.runtime:runtime-testing:1.0.0-alpha03 are released with no notable changes since the last alpha. Version 1.0.0-alpha03 contains these commits .
Version 1.0.0-alpha02
12 февраля 2025 г.
androidx.xr.runtime:runtime:1.0.0-alpha02 , androidx.xr.runtime:runtime-openxr:1.0.0-alpha02 , and androidx.xr.runtime:runtime-testing:1.0.0-alpha02 are released. Version 1.0.0-alpha02 contains these commits .
Breaking & behavioral changes
-
OpenXRruntime functions that return an Anchor now throwAnchorResourcesExhaustedExceptionif they encounter an error code notifying that theOpenXRresource limit has been reached. - Permission
android.permission.HAND_TRACKINGis now required forSession.createandSession.resume.
Новые функции
- Added hand tracking support.
Исправлены ошибки
- Creating anchors is more stable when running on an emulator
Version 1.0.0-alpha01
12 декабря 2024 г.
androidx.xr.runtime:runtime-* 1.0.0-alpha01 is released.
Features of Initial Release
Initial release of Jetpack XR Runtime. This library contains fundamental pieces of functionality for the Jetpack XR suite of libraries. This includes capability discovery, lifecycle management, configuration, and more. The Runtime library provides different variations (eg runtime-openxr or runtime-testing ) depending on the execution platform. Additionally, this library offers fundamental math abstractions such as Vector3 and Matrix4 that are used across the entire Jetpack XR API surface.
Session: Provides you with fine-grained controls over the XR system, including deciding when processing is and is not being executed and the overall configuration. It is also the handle that you will use across all other APIs to unlock the underlying system capabilities.Pose: A location in an arbitrary coordinate system that has a position and orientation associated with it. You will use this class to communicate the location of objects with ARCore for Jetpack XR and Jetpack SceneCore.
Известные проблемы
-
configureis currently a no-op. Future releases will add new settings that you can use to control the behavior of theSession.