callKitReleaseAudioSession method

Future<void> callKitReleaseAudioSession()

iOS only. Restores default AVAudioSession initialization routines.

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

Must be called if CallKit becomes disabled.

Implementation

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