Config.DeviceTrackingMode


class Config.DeviceTrackingMode : Config.ConfigMode


Feature that allows tracking of the AR device.

Summary

Public companion properties

Config.DeviceTrackingMode

This property is deprecated. Use androidx.xr.runtime.DeviceTrackingMode instead.

Config.DeviceTrackingMode

This property is deprecated. Use androidx.xr.runtime.DeviceTrackingMode instead.

Public companion properties

DISABLED

val DISABLEDConfig.DeviceTrackingMode

The device pose will not be tracked. In this mode, androidx.xr.arcore.RenderViewpoint will not emit updates to androidx.xr.arcore.RenderViewpoint.State.pose.

LAST_KNOWN

val LAST_KNOWNConfig.DeviceTrackingMode

The device pose will be tracked and the last known pose from the system at the time of runtime update will be provided. Note that there is generally a delay between the actual device pose and the pose provided by the system by the time of the update.

Supported runtimes:

  • OpenXR

  • Play Services

Required permissions:

  • CAMERA (Play Services runtimes only)