WasmJsCameraManager

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open suspend override fun takePicture(): ByteArray?

Opens the device camera and returns the captured photo as raw PNG bytes (lossless), or null if cancelled/unavailable. Callers apply their own compression/format conversion on top of this — implementations must not bake in any quality/format decision of their own.