Google is committed to advancing racial equity for Black communities. See how.

CameraConfig.DepthSensorUsage

public static final enum CameraConfig.DepthSensorUsage

Depth sensor usage.

Inherited Methods

Enum Values

DO_NOT_USE

public static final CameraConfig.DepthSensorUsage DO_NOT_USE

When used as a camera filter, via CameraConfigFilter.setDepthSensorUsage(EnumSet), indicates that ARCore will not attempt to use a depth sensor, even if it is present. Most commonly used to filter camera configurations when the app requires exclusive access to the depth sensor outside of ARCore, for example to support 3D mesh reconstruction. Available on all ARCore supported devices.

When returned by CameraConfig.getDepthSensorUsage(), indicates that the camera config will not use a depth sensor.

REQUIRE_AND_USE

public static final CameraConfig.DepthSensorUsage REQUIRE_AND_USE

When used as a camera filter, via CameraConfigFilter.setDepthSensorUsage(EnumSet), indicates that a depth sensor must be present on the device, and the depth sensor will be used by ARCore. Not supported on all devices.

Currently not supported when SharedCamera API is used to share control of the camera with ARCore.

When returned by CameraConfig.getDepthSensorUsage(), indicates that the camera config will use a depth sensor.