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

GoogleARCore.ARCoreCameraConfigFilter.DepthSensorUsageFilter

This allows an app to use or disable a hardware depth sensor, such as a time-of-flight sensor (or ToF sensor), if present on the device.

Summary

Public attributes

DoNotUse = true
bool
Filters for camera configs where a hardware depth sensor, such as a time-of-flight sensor (or ToF sensor), is not present, or is present but will not be used by ARCore.
RequireAndUse = true
bool
Filters for camera configs that require a hardware depth sensor, such as a time-of-flight sensor (or ToF sensor), to be present on the device, and that will be used by ARCore.

Public attributes

DoNotUse

bool DoNotUse = true

Filters for camera configs where a hardware depth sensor, such as a time-of-flight sensor (or ToF sensor), is not present, or is present but will not be used by ARCore.

Most commonly used to filter camera configurations when the app requires exclusive access to the hardware depth sensor outside of ARCore, for example to support 3D mesh reconstruction. Available on all ARCore supported devices.

RequireAndUse

bool RequireAndUse = true

Filters for camera configs that require a hardware depth sensor, such as a time-of-flight sensor (or ToF sensor), to be present on the device, and that will be used by ARCore.

See the ARCore supported devices page for a list of devices that currently have supported depth sensors.