UrScanner class

Accumulates camera frames into a UR. Synchronous and non-throwing on the feed path (safe to call from camera callbacks); malformed frames come back as typed rejections, never exceptions.

Implementers

Constructors

UrScanner([UrScannerOptions? options])

Properties

framesExpected int
Frames the bound stream declares.
no setter
framesReceived int
Frames received so far.
no setter
hashCode int
The hash code for this object.
no setterinherited
isComplete bool
Whether the UR is fully assembled.
no setter
lastRejection ScanRejection?
The most recent rejection, or null.
no setter
progress double
Assembly progress in [0, 1].
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
urType String?
The UR type of the bound stream, or null until one binds.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
receivePart(String frame) ScanFeedResult
Feed one scanned frame.
result() Ur
The assembled UR. Throws incomplete-scan until done.
toString() String
A string representation of this object.
inherited

Operators

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