capturePhoto
abstract suspend fun capturePhoto(settings: CapturePhotoSettings = CapturePhotoSettings(), callbacks: CapturePhotoCallbacks = CapturePhotoCallbacks()): Photo
Captures a Photo in memory with the given settings.
The returned Photo holds native memory: Photo.dispose it (or use it in a use block) once it is no longer needed. On Android, prefer capturePhotoToFile for formats other than JPEG, as CameraX does not properly support in-memory RAW photos yet.