Skip to main content

CameraStatus

Namespace: BlazorNative.Core

The wire-mirrored outcome of a photo capture. Cancellation (1), denial (2), unavailability (3) and error (4) are all VALUES — never an exception, never a hang; out-of-range maps to Error. Note the deliberate split between Cancelled (the user chose not to shoot) and Denied (the OS refused access). The numeric values are the ABI contract; do not reorder.

public enum CameraStatus

Inheritance ObjectValueTypeEnumCameraStatus
Implements IComparable, ISpanFormattable, IFormattable, IConvertible

Fields

NameValueDescription
Captured0A photo was taken and written; the payload carries its path.
Cancelled1The user backed out of the camera UI — a NORMAL outcome.
Denied2The OS refused camera access — a PERMISSION outcome (iOS).
Unavailable3No camera hardware / capture UI unavailable (the honest iOS-simulator result); also the read-only check's "no camera" answer.
Error4Unexpected host error (a caught throw, a write/encode failure, malformed args).