Enum ARFaceRegion

java.lang.Object
java.lang.Enum<ARFaceRegion>
com.codename1.ar.ARFaceRegion
All Implemented Interfaces:
Comparable<ARFaceRegion>

public enum ARFaceRegion extends Enum<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 Details

    • NOSE_TIP

      public static final ARFaceRegion NOSE_TIP
      The tip of the nose.
    • FOREHEAD_LEFT

      public static final ARFaceRegion FOREHEAD_LEFT
      The left side of the forehead (the person's left).
    • FOREHEAD_RIGHT

      public static final ARFaceRegion FOREHEAD_RIGHT
      The right side of the forehead (the person's right).
    • LEFT_EYE

      public static final ARFaceRegion LEFT_EYE
      The center of the left eye (the person's left). May be unavailable on some platforms.
    • RIGHT_EYE

      public static final ARFaceRegion RIGHT_EYE
      The center of the right eye (the person's right). May be unavailable on some platforms.
  • Method Details

    • values

      public static ARFaceRegion[] 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

      public static ARFaceRegion valueOf(String name)
      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 name
      NullPointerException - if the argument is null