DeviceTrackingMode


class DeviceTrackingMode


Feature that allows tracking of the AR device.

Summary

Public companion properties

DeviceTrackingMode

The device pose will not be tracked.

DeviceTrackingMode

Tracks device pose with 3DoF (rotation only) and provides the last known pose from the system.

DeviceTrackingMode

Tracks device pose and provides the last known 6DoF (rotation and translation) pose from the system.

Public functions

open String

Returns a string representation of DeviceTrackingMode for debugging.

Public properties

Int

Public companion properties

DISABLED

val DISABLEDDeviceTrackingMode

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.

INERTIAL

@ExperimentalInertialTrackingApi
val INERTIALDeviceTrackingMode

Tracks device pose with 3DoF (rotation only) and provides the last known pose from the system. 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:

  • Projected

SPATIAL

val SPATIALDeviceTrackingMode

Tracks device pose and provides the last known 6DoF (rotation and translation) pose from the system. 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)

Public functions

toString

open fun toString(): String

Returns a string representation of DeviceTrackingMode for debugging.

Note: Not intended for production use.

Public properties

mode

Added in 1.0.0-beta02
val modeInt