CameraConfigFilter

public class CameraConfigFilter

Allows the application to select the camera config filters it needs to enable/disable so that it can obtain the list of camera configs that are supported on the device camera.

Public Constructors

Protected Constructors

CameraConfigFilter()
(FOR TESTING) Constructs a new instance for use as a mock.

Public Methods

CameraConfigFilter
setDepthSensorUsage(EnumSet<CameraConfig.DepthSensorUsage> depthSensorUsageFilters)
Sets depth sensor usage filter.
CameraConfigFilter
setTargetFps(EnumSet<CameraConfig.TargetFps> frameRates)
Sets target camera capture frame rate filter.

Inherited Methods

Public Constructors

public CameraConfigFilter (Session session)

Parameters
session

Protected Constructors

protected CameraConfigFilter ()

(FOR TESTING) Constructs a new instance for use as a mock. Calling any base method implementation on this instance may return unexpected results, throw an exception, or even crash.

To obtain a CameraConfigFilter normally, use update().

Public Methods

public CameraConfigFilter setDepthSensorUsage (EnumSet<CameraConfig.DepthSensorUsage> depthSensorUsageFilters)

Sets depth sensor usage filter. Default is to not filter.

Parameters
depthSensorUsageFilters

public CameraConfigFilter setTargetFps (EnumSet<CameraConfig.TargetFps> frameRates)

Sets target camera capture frame rate filter.

Default is to not filter on target frame rate.

TARGET_FPS_30 is guaranteed to be available on all ARCore Supported Device. Support for TARGET_FPS_60 is only available on certain devices. See the ARCore Supported Devices page for a list of affected devices.

Parameters
frameRates

Send feedback about...