OptionalcameraOptionalcameraCamera facing mode: 'user' (front) or 'environment' (back). Undefined by
default. When set, it takes precedence over defaultCameraId — the camera is
selected by facing direction and the browser chooses the device.
OptionalcancelIf true, measurement will be canceled when low SNR is detected
OptionalcheckEnables all distance, direction, and movement validations
OptionaldebugIf true, enables verbose logging for debugging purposes
OptionaldefaultPreferred camera deviceId to use on startup. Used only when
cameraFacingMode is not set (a set cameraFacingMode takes precedence).
Useful when the browser does not expose enough information for WMEA to pick
the right camera (e.g. distinguishing the ultra-wide front camera on iPad).
Persist the user's selection from a prior session (e.g. in localStorage)
and pass it back here.
cameraAutoStart or mobile), this
camera is opened directly.OptionaldownloadIf true, enables downloading of measurement payloads
OptionalmeasurementIf true, measurement begins automatically after camera starts
If true, camera starts automatically without user interaction