public enum ARPlaneDetection

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

ImplementsComparable<ARPlaneDetection>

Which real-world surface orientations an ARSession should detect and report as ARPlanes.

Enum constants

NONEDo not detect planes.
HORIZONTALDetect horizontal surfaces such as floors and tables.
VERTICALDetect vertical surfaces such as walls.
HORIZONTAL_AND_VERTICALDetect both horizontal and vertical surfaces.

Methods

public static ARPlaneDetection[] values()
public static ARPlaneDetection valueOf(String name)
public boolean includesHorizontal()True when this setting includes horizontal surfaces.
public boolean includesVertical()True when this setting includes vertical surfaces.

Inherited methods

Enum constant details

NONE

NONE
Do not detect planes.

HORIZONTAL

HORIZONTAL
Detect horizontal surfaces such as floors and tables.

VERTICAL

VERTICAL
Detect vertical surfaces such as walls.

HORIZONTAL_AND_VERTICAL

HORIZONTAL_AND_VERTICAL
Detect both horizontal and vertical surfaces.

Method details

values

public static ARPlaneDetection[] values()

valueOf

public static ARPlaneDetection valueOf(String name)

includesHorizontal

public boolean includesHorizontal()
True when this setting includes horizontal surfaces.

includesVertical

public boolean includesVertical()
True when this setting includes vertical surfaces.