IdCameraSelectorFilter

Selects the camera based on its id.

NOTE: the main purpose of this filter is to be used as a quick selector of a pre-checked camera, the MiSnapCameraInfo object and the camera id would be known and tested beforehand.

Parameters

cameraId

The target camera id to look for.

cameraInfo

The camera support object to return from this filter and that corresponds to the Camera2CameraInfo object returned by the camera that matches the id.

Constructors

Link copied to clipboard
constructor(cameraId: String, cameraInfo: MiSnapCameraInfo?)

Functions

Link copied to clipboard
open override fun filterCameras(cameraInfoList: MutableList<Camera2CameraInfo>): List<Camera2CameraInfo>

Creates a prioritized list of supported cameras.

Link copied to clipboard
open override fun getCameraInfo(cameraInfo: Camera2CameraInfo): MiSnapCameraInfo?

Builds a MiSnapCameraInfo with the selected camera's info.