MediaPermissionErrorCode enum

Media capture error categories normalized for Flint UI apps.

Browsers report camera, microphone, and screen-share failures with different DOM exception names. Flint UI maps those browser-specific names into these stable categories so app code can show consistent messages.

Inheritance
Available extensions

Values

unsupported → const MediaPermissionErrorCode

The current runtime cannot access browser media APIs.

This is the normal result during server rendering, tests that run on the Dart VM, or unsupported browser environments.

insecureContext → const MediaPermissionErrorCode

The page is not running in a secure browser context.

Camera, microphone, and screen sharing generally require HTTPS or localhost. Normal http:// production domains are blocked by browsers.

permissionDenied → const MediaPermissionErrorCode

The user or browser denied access to the requested device.

deviceNotFound → const MediaPermissionErrorCode

No camera, microphone, or matching device ID was available.

cancelled → const MediaPermissionErrorCode

The user cancelled the picker, commonly with screen sharing.

unknown → const MediaPermissionErrorCode

The browser returned an error Flint UI could not classify.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<MediaPermissionErrorCode>
A constant List of the values in this enum, in order of their declaration.