RecorderConfiguration constructor

RecorderConfiguration({
  1. required DataSource dataSource,
  2. String logsDir = '',
  3. @Deprecated('Use hardwareSpecifications instead.') String deviceModel = '',
  4. Map<HardwareSpecification, String>? hardwareSpecifications,
  5. List<DataType> recordedTypes = const <DataType>[],
  6. int minDurationSeconds = 30,
  7. Resolution videoQuality = Resolution.unknown,
  8. int chunkDurationSeconds = 600,
  9. bool continuousRecording = true,
  10. bool enableAudio = false,
  11. int maxDiskSpaceUsed = 0,
  12. int keepMinSeconds = 0,
  13. bool deleteOlderThanKeepMin = false,
  14. RecordingTransportMode transportMode = RecordingTransportMode.unknown,
})

Implementation

RecorderConfiguration({
  required this.dataSource,
  this.logsDir = '',
  @Deprecated('Use hardwareSpecifications instead.') String deviceModel = '',
  Map<HardwareSpecification, String>? hardwareSpecifications,
  this.recordedTypes = const <DataType>[],
  this.minDurationSeconds = 30,
  this.videoQuality = Resolution.unknown,
  this.chunkDurationSeconds = 600,
  this.continuousRecording = true,
  this.enableAudio = false,
  this.maxDiskSpaceUsed = 0,
  this.keepMinSeconds = 0,
  this.deleteOlderThanKeepMin = false,
  this.transportMode = RecordingTransportMode.unknown,
}) {
  this.hardwareSpecifications =
      hardwareSpecifications ?? <HardwareSpecification, String>{};
  if (deviceModel.isNotEmpty) {
    this.hardwareSpecifications[HardwareSpecification.deviceModel] =
        deviceModel;
  }
}