startRecord method Null safety

Future<NIMResult<bool>> startRecord(
  1. AudioOutputFormat recordType,
  2. int maxDuration
)

Start recording. Setting the recording format and maximum recording length is supported. If no parameters are passed in, the recording format and the maximum recording length will be AAC and 120s respectively by default.

Implementation

Future<NIMResult<bool>> startRecord(
    AudioOutputFormat recordType, int maxDuration) async {
  return _platform.startAudioRecord(recordType, maxDuration);
}