Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.

ExtensionCameraFilter

public final class ExtensionCameraFilter
extends Object implements CameraFilter

java.lang.Object
   ↳ androidx.camera.extensions.ExtensionCameraFilter


A filter that filters camera based on extender implementation. If the implementation is unavailable, the camera will be considered available.

Summary

Public methods

List<CameraInfo> filter(List<CameraInfo> cameraInfos)

Filters a list of CameraInfos and returns those matching the requirements.

Inherited methods

Public methods

filter

public List<CameraInfo> filter (List<CameraInfo> cameraInfos)

Filters a list of CameraInfos and returns those matching the requirements.

If the output list contains CameraInfos not in the input list, when used by a CameraSelector then it will result in an IllegalArgumentException thrown when calling bindToLifecycle.

The CameraInfo that has lower index in the list has higher priority. When used by CameraSelector.Builder.addCameraFilter(CameraFilter), the available cameras will be filtered by all CameraFilters by the order they were added. The first camera in the result will be selected if there are multiple cameras left.

Parameters
cameraInfos List: An unmodifiable list of CameraInfos being filtered.

Returns
List<CameraInfo> The output list of CameraInfos that match the requirements. Users are expected to create a new list to return with.