ScannerStats class

Real-time operational performance telemetry metrics exposed by ScannerPro SDK.

Annotations

Constructors

ScannerStats({double fps = 0.0, double processingTimeMs = 0.0, double memoryMb = 0.0, int droppedFrames = 0, int processedFrames = 0, double cpuUsageEstimate = 0.0, DateTime? timestamp})
Constructs a ScannerStats telemetry snapshot.

Properties

cpuUsageEstimate double
Estimated CPU load percentage (0.0 to 100.0%).
final
droppedFrames int
Total count of frames skipped due to throttling, blur, or static scene detection.
final
fps double
Estimated live camera frame detection rate (frames per second).
final
hashCode int
The hash code for this object.
no setterinherited
memoryMb double
Estimated memory usage in megabytes (MB).
final
processedFrames int
Total count of frame passes successfully processed by ML Kit vision models.
final
processingTimeMs double
Average frame processing duration in milliseconds.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp DateTime
Timestamp when stats snapshot was captured.
final

Methods

copyWith({double? fps, double? processingTimeMs, double? memoryMb, int? droppedFrames, int? processedFrames, double? cpuUsageEstimate, DateTime? timestamp}) ScannerStats
Creates a copy of ScannerStats with modified metrics.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts stats payload to JSON map.
toString() String
A string representation of this object.
override

Operators

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

Static Properties

empty ScannerStats
Default initial empty stats.
final