callKitStopAudio method

Future<void> callKitStopAudio()

iOS only. Stops AVAudioSession.

Required for the correct CallKIt integration only. Otherwise don't use this method.

Should be called in CXProviderDelegate.didDeactivateAudioSession.

Implementation

Future<void> callKitStopAudio() async {
  if (Platform.isIOS) {
    await _channel.invokeMethod('AudioDevice.callKitStopAudio');
  } else {
    _VILog._w('callKitStopAudio: invalid call for platform');
  }
}