DeviceTrackingMode


public final class DeviceTrackingMode


Feature that allows tracking of the AR device.

Summary

Public fields

static final @NonNull DeviceTrackingMode

The device pose will not be tracked.

static final @NonNull DeviceTrackingMode

The device pose will be tracked with 3DoF (rotation only) and the last known pose from the system at the time of runtime update will be provided.

static final @NonNull DeviceTrackingMode

The device pose will be tracked and the last known pose (6dof, including position & orientation) from the system at the time of runtime update will be provided.

Public methods

final int

Public fields

DISABLED

public static final @NonNull DeviceTrackingMode DISABLED

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
public static final @NonNull DeviceTrackingMode INERTIAL

The device pose will be tracked with 3DoF (rotation only) 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:

  • Projected

SPATIAL

public static final @NonNull DeviceTrackingMode SPATIAL

The device pose will be tracked and the last known pose (6dof, including position & orientation) 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)

Public methods

getMode

Added in 1.0.0-alpha15
public final int getMode()