FaceTrackingMode


public final class FaceTrackingMode extends Config.ConfigMode


Feature that allows tracking of human faces.

Setting this feature to FaceTrackingMode.BLEND_SHAPES requires that the FACE_TRACKING Android permission is granted by the calling application.

Setting this feature to FaceTrackingMode.MESHES requires the CAMERA Android permission to be granted and that CameraFacingDirection is set to CameraFacingDirection.Companion.USER.

Summary

Public fields

static final @NonNull FaceTrackingMode

Blend shapes of the user's face will be tracked.

static final @NonNull FaceTrackingMode

Faces will not be tracked.

Public fields

BLEND_SHAPES

public static final @NonNull FaceTrackingMode BLEND_SHAPES

Blend shapes of the user's face will be tracked.

Supported runtimes:

  • OpenXR

Required permissions:

DISABLED

public static final @NonNull FaceTrackingMode DISABLED

Faces will not be tracked.