MediaStreamResult class
Result returned by media capture requests.
A granted result contains the raw browser stream in stream. Flint UI keeps this as Object so the public API stays usable from server-safe imports. Browser-only helpers and preview widgets can cast the stream internally.
Constructors
- MediaStreamResult({required bool granted, Object? stream, MediaPermissionError? error})
-
const
Properties
- denied → bool
-
Convenience inverse of granted.
no setter
- error → MediaPermissionError?
-
Normalized failure details when granted is false.
final
- granted → bool
-
Whether the browser granted the requested camera, microphone, or screen.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stream → Object?
-
Raw browser
MediaStreamwhen granted is true.final
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