CameraTools
object CameraTools
Provider for the camera module: GetCameraCapabilitiesTool, TakePhotoTool, and CaptureVideoTool. Headless Camera2-based capture; the back camera is preferred when present. Requires camera hardware (the manifest marks the feature non-required).
Functions
Link copied to clipboard
All tools in this module: GetCameraCapabilitiesTool, TakePhotoTool, CaptureVideoTool.
Link copied to clipboard
true when Manifest.permission.CAMERA is granted.
Link copied to clipboard
Manifest.permission.CAMERA, always. Below API 29, TakePhotoTool and CaptureVideoTool also need WRITE_EXTERNAL_STORAGE to insert into MediaStore — the scoped-storage exemption for an app's own MediaStore inserts only applies on API 29+.