Negotiates a concrete CameraDeviceFormat from a device's available formats and a prioritised list of CameraConstraints.
This is the Dart-side analogue of vision-camera's native ConstraintResolver
(iOS penalty-minimization variant): every candidate format is scored by the
priority-weighted sum of each constraint's penalty, and the lowest-scoring
format wins. Because we already expose the device's formats over the bridge,
negotiation can run entirely in Dart — no extra native round-trip.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Static Methods
-
resolve(
CameraDeviceInfo device, List< CameraConstraint> constraints) → CameraDeviceFormat? -
Returns the best-matching format for
devicegivenconstraints, ornullif the device has no formats. With an empty constraint list the highest-resolution format is returned (a sensible default). -
resolveConfig(
CameraDeviceInfo device, List< CameraConstraint> constraints, {double? targetFps, PixelFormat pixelFormat = PixelFormat.bgra, bool requestVideoHdr = false}) → ResolvedCameraConfig? -
Negotiates a format and produces the ResolvedCameraConfig describing what
was actually selected (resolution, clamped fps, HDR availability). Mirrors
vision-camera surfacing the resolved config back via
onSessionConfigSelected.