openMicrophone method

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

Implementation

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