Camera Provider
A class that provides Camera2 API features to any class that implements the CameraInstance interface.
Constructors
Types
Functions
Captures the current frame of the previewTextureView and returns it as a Bitmap.
Creates a captureSession on previewTextureView, using previewRequestBuilder.
Initializes previewTextureView and sets the SurfaceTextureListener.
Opens the camera with the provided width and height if Manifest.permission.CAMERA is granted.
Sets up the camera output by choosing the optimal size from all available cameras.
Starts the camera preview on previewTextureView.
Properties
Callback for handling all state changes of captureSession.
The CameraInstance passed through the constructor
The CaptureRequest to get camera images for the preview
The builder for previewRequest
The Size of the camera preview image
The TextureView, on which the camera preview image will be displayed