RecorderConfiguration class Sensor Data Source

Structure describing recorder configuration properties.

Constructors

RecorderConfiguration({required DataSource dataSource, String logsDir = '', String deviceModel = '', List<DataType> recordedTypes = const <DataType>[], int minDurationSeconds = 30, Resolution videoQuality = Resolution.unknown, int chunkDurationSeconds = 600, bool continuousRecording = true, bool enableAudio = false, int maxDiskSpaceUsed = 0, int keepMinSeconds = 0, bool deleteOlderThanKeepMin = false, RecordingTransportMode transportMode = RecordingTransportMode.unknown})
RecorderConfiguration.fromJson(Map<String, dynamic> json)
factory

Properties

chunkDurationSeconds int
The chunk duration time in seconds
getter/setter pair
continuousRecording bool
Whether the recording should continue automatically after reaching the chunk duration.
getter/setter pair
dataSource DataSource
The data source used for recording.
getter/setter pair
deleteOlderThanKeepMin bool
Flag to delete older logs exceeding the keepMinSeconds threshold.
getter/setter pair
deviceModel String
The device model
getter/setter pair
enableAudio bool
Flag indicating whether audio should be recorded.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
keepMinSeconds int
Minimum seconds of recordings to retain on disk.
getter/setter pair
logsDir String
The directory used to keep the logs.
getter/setter pair
maxDiskSpaceUsed int
Maximum disk space that recordings can occupy.
getter/setter pair
minDurationSeconds int
The minimum recording duration for it to be saved.
getter/setter pair
recordedTypes List<DataType>
The types that are recorded.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transportMode RecordingTransportMode
The transport mode used at the time the log was recorded.
getter/setter pair
videoQuality Resolution
The video quality of the recording.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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