LensCheckingHelper

public final class LensCheckingHelper

Checks if the desired camera (front or back) is available and shows an error dialog if not.

Return

CameraSelector? Returns a valid CameraSelector if the camera is available; null otherwise.

Parameters

context

The context (usually the activity) to show the dialog.

availableCameras

The list of available camera information.

isBackCamera

Flag indicating if the back camera is required.

onError

Callback function to handle errors (e.g., finish the activity).

Constructors

Link copied to clipboard

Types

Link copied to clipboard
public class Companion

Properties

Link copied to clipboard