Enum ARFaceRegion
- All Implemented Interfaces:
Comparable<ARFaceRegion>
Named face regions whose poses can be queried from an
ARFaceAnchor.
Platform availability differs: ARCore natively supplies the nose tip and
forehead regions, while eye poses are an ARKit capability. Query
ARFaceAnchor#getRegionPose(ARFaceRegion) and handle a null result.-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe left side of the forehead (the person's left).The right side of the forehead (the person's right).The center of the left eye (the person's left).The tip of the nose.The center of the right eye (the person's right). -
Method Summary
Modifier and TypeMethodDescriptionstatic ARFaceRegionReturns the enum constant of this type with the specified name.static ARFaceRegion[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
NOSE_TIP
The tip of the nose. -
FOREHEAD_LEFT
The left side of the forehead (the person's left). -
FOREHEAD_RIGHT
The right side of the forehead (the person's right). -
LEFT_EYE
The center of the left eye (the person's left). May be unavailable on some platforms. -
RIGHT_EYE
The center of the right eye (the person's right). May be unavailable on some platforms.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-