keepMinSeconds property

int get keepMinSeconds

Gets the minimum seconds of recordings to retain on disk.

After the threshold is reached the oldest recording will be deleted if there is no space left on the device.

To force deletion regardless of space, set deleteOlderThanKeepMin to true.

The default value is 0 (keep all recordings).

Implementation

int get keepMinSeconds {
  final OperationResult resultString = objectMethod(
    pointerId,
    'RecorderConfiguration',
    'getKeepMinSeconds',
  );
  return resultString['result'];
}
set keepMinSeconds (int keepMinSeconds)

Sets the minimum seconds of recordings to retain on disk.

After the threshold is reached the oldest recording will be deleted if there is no space left on the device.

To force deletion regardless of space, set deleteOlderThanKeepMin to true.

The default value is 0 (keep all recordings).

Implementation

set keepMinSeconds(final int keepMinSeconds) {
  objectMethod(
    pointerId,
    'RecorderConfiguration',
    'setKeepMinSeconds',
    args: keepMinSeconds,
  );
}