RecorderConfiguration class Sensor Data Source

Configuration used to control recorder behavior and log storage settings.

Use this object to specify which data types to record, where logs are stored, chunking and retention policies, video quality and audio options, and device-specific hardware metadata. Construct a RecorderConfiguration and pass it to Recorder.create or Recorder.setRecorderConfiguration to apply the settings.

Constructors

RecorderConfiguration.new({required DataSource dataSource, String logsDir = '', Map<HardwareSpecification, String>? hardwareSpecifications, List<DataType> recordedTypes = const <DataType>[], int minDurationSeconds = 30, Resolution videoQuality = Resolution.unknown, int chunkDurationSeconds = 0, bool continuousRecording = true, bool enableAudio = false, int maxDiskSpaceUsed = 0, int keepMinSeconds = 0, bool deleteOlderThanKeepMin = false, RecordingTransportMode transportMode = RecordingTransportMode.unknown})
Creates a configured RecorderConfiguration.
factory
RecorderConfiguration.init(int id)

Properties

chunkDurationSeconds int
Chunk duration (seconds) used to split recordings.
getter/setter pair
continuousRecording bool
Whether recordings continue automatically after a chunk ends.
getter/setter pair
dataSource DataSource
The data source used for recording.
getter/setter pair
deleteOlderThanKeepMin bool
Whether logs older than keepMinSeconds are deleted regardless of free space.
getter/setter pair
enableAudio bool
Whether audio tracks are enabled for recordings.
getter/setter pair
hardwareSpecifications Map<HardwareSpecification, String>
Device hardware specifications attached to recordings.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
keepMinSeconds int
Minimum total seconds of recordings to retain on disk.
getter/setter pair
logsDir String
Directory used to store recorder logs.
getter/setter pair
maxDiskSpaceUsed int
Maximum disk space (bytes) that recordings may occupy.
getter/setter pair
minDurationSeconds int
Minimum recording duration (seconds) required to save a recording.
getter/setter pair
pointerId int
The pointer ID of the native object
no setterinherited
recordedTypes List<DataType>
Types of data that are configured to be recorded.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transportMode RecordingTransportMode
Transport mode associated with recorded logs.
getter/setter pair
videoQuality Resolution
Video quality (resolution) used when camera recording is active.
getter/setter pair

Methods

dispose() → void
Disposes the native object.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerAutoReleaseObject(int pointerId) → void
Registers an object for auto release.
inherited
toString() String
A string representation of this object.
inherited

Operators

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