callKitStartAudio method

Future<void> callKitStartAudio()

iOS only. Starts AVAudioSession.

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

Should be called in CXProviderDelegate.didActivateAudioSession.

Implementation

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