stop method

bool stop()

stop record and export a record file

Implementation

bool stop() {
  if (_status == RecordStatus.RECORDING || _status == RecordStatus.PAUSE) {
    _onRecordError = null;
    _status = RecordStatus.IDEL;
    _channel.invokeMethod("stop");
    return true;
  }
  return false;
}