currentRecording method

Future<RecordingInformation> currentRecording()

Returns information about the current recording. Use this accessor if you wish to receive information that is available in the Recording object, such as the ID of the participant who started the recording or the timestamp that informs when the recording was started.

Implementation

Future<RecordingInformation> currentRecording() async {
  var result = await _methodChannel
      .invokeMethod<Map<Object?, Object?>>("currentRecording");
  return Future.value(
      result != null ? RecordingInformationMapper.fromMap(result) : null);
}