Android 12 Developer Preview is here! Try it out, and give us your feedback!

Camera2CameraFilter

public final class Camera2CameraFilter
extends Object

java.lang.Object
   ↳ androidx.camera.camera2.interop.Camera2CameraFilter


Provides ability to filter cameras with camera IDs and characteristics and create the corresponding CameraFilter.

Summary

Nested classes

interface Camera2CameraFilter.Camera2Filter

An interface that filters cameras based on camera IDs and characteristics. 

Public methods

static CameraFilter createCameraFilter(Camera2CameraFilter.Camera2Filter filter)

Creates a CameraFilter from a Camera2CameraFilter.Camera2Filter.

Inherited methods

Public methods

createCameraFilter

public static CameraFilter createCameraFilter (Camera2CameraFilter.Camera2Filter filter)

Creates a CameraFilter from a Camera2CameraFilter.Camera2Filter.

Parameters
filter Camera2CameraFilter.Camera2Filter

Returns
CameraFilter