public enum ARTrackingMode

  1. Object
  2. Enum<ARTrackingMode>
  3. ARTrackingMode

ImplementsComparable<ARTrackingMode>

The tracking configuration of an ARSession. World and face tracking are distinct session configurations on both ARKit and ARCore, so a session runs in exactly one mode; close the session and open a new one to switch.

Enum constants

WORLDTrack the device pose in the world using the rear camera.
FACETrack faces using the front camera.

Methods

public static ARTrackingMode[] values()
public static ARTrackingMode valueOf(String name)

Inherited methods

Enum constant details

WORLD

WORLD
Track the device pose in the world using the rear camera. Enables plane detection, hit testing, world anchors and image tracking.

FACE

FACE
Track faces using the front camera. Detected faces are delivered as ARFaceAnchors; plane detection and hit testing are unavailable.

Method details

values

public static ARTrackingMode[] values()

valueOf

public static ARTrackingMode valueOf(String name)