setMaxRecordedFileSize method

Future<void> setMaxRecordedFileSize(
  1. int fileSize
)

Specifies the maximum size, in bytes, of the data that should be recorded by the receiver.

This property specifies a hard limit on the data size of recorded files. Recording is stopped when the limit is reached and the CaptureFileOutputRecordingDelegate.captureOutput:didFinishRecordingToOutputFileAtURL:fromConnections:error: delegate method is invoked with an appropriate error. The default value of this property is 0, which indicates no limit.

Implementation

Future<void> setMaxRecordedFileSize(int fileSize) {
  return _channel.$setMaxRecordedFileSize(this, fileSize);
}