openMicrophone method

Future<NEResult> openMicrophone([
  1. bool notify = true
])

Implementation

Future<NEResult> openMicrophone([bool notify = true]) async {
  CallKitUILog.i(_tag, 'openMicrophone notify = $notify');
  if (_isDesktopRuntime) {
    await _applyPendingDesktopAudioRecordingDeviceIfNeeded();
  }
  final result = await NECallEngine.instance.muteLocalAudio(false);
  CallState.instance.isMicrophoneMute = false;
  _syncCallStateToNative();
  return NEResult(code: result.code, message: result.msg);
}