callKitConfigureAudioSession method

Future<void> callKitConfigureAudioSession()

iOS only. Initializes AVAudioSession for use with CallKit integration.

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

Should be called in CXProviderDelegate.performStartCallAction and CXProviderDelegate.performAnswerCallAction.

Implementation

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