Config.FaceTrackingMode


public final class Config.FaceTrackingMode implements Config.ConfigMode


Feature that allows tracking of human faces.

Setting this feature to FaceTrackingMode.USER 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.USER.

Summary

Public fields

static final @NonNull Config.FaceTrackingMode

Faces will not be tracked.

static final @NonNull Config.FaceTrackingMode

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

Inherited methods

From androidx.xr.runtime.Config.ConfigMode
boolean

Queries whether the ConfigMode is supported and is available to be configured for the session via Session.configure.

Public fields

DISABLED

public static final @NonNull Config.FaceTrackingMode DISABLED

Faces will not be tracked.

USER

public static final @NonNull Config.FaceTrackingMode USER

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