NativeLensDatasetRow class

Stable AI- and dataset-friendly row model for NativeLens snapshots.

Constructors

NativeLensDatasetRow({required String schemaVersion, required String platform, required int batteryLevel, required bool isCharging, required bool isPowerSaveMode, required bool networkConnected, required bool networkValidated, required bool networkMetered, required bool hasHevcEncoder, required double maxRefreshRate, required int cameraCount, required int sensorCount, required int codecCount, required int overallScore, required String riskLevel, required String labelSource, required int createdAtMillis})
Creates a NativeLens dataset row.
const

Properties

batteryLevel int
Battery level from 0 to 100.
final
cameraCount int
Number of camera capabilities detected.
final
codecCount int
Number of codecs detected.
final
createdAtMillis int
Creation timestamp in milliseconds since epoch.
final
hashCode int
The hash code for this object.
no setterinherited
hasHevcEncoder bool
Whether the device advertises an HEVC encoder.
final
isCharging bool
Whether the device is charging.
final
isPowerSaveMode bool
Whether power save mode is enabled.
final
isValid bool
Returns whether this row satisfies the required validation rules.
no setter
labelSource String
Source used to label the row.
final
maxRefreshRate double
Maximum refresh rate reported by the device.
final
networkConnected bool
Whether the active network is connected.
final
networkMetered bool
Whether the active network is metered.
final
networkValidated bool
Whether the active network has been validated.
final
overallScore int
Overall compatibility score from 0 to 100.
final
platform String
Platform identifier. Supported values are android and ios.
final
riskLevel String
Current risk level.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schemaVersion String
Schema identifier for the row format.
final
sensorCount int
Number of sensors detected.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
Serializes the row to a JSON string.
toMap() Map<String, Object>
Serializes the row to a map using stable field names.
toString() String
A string representation of this object.
override

Operators

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