setForegroundPresentationOptionsCallback method

Future<void> setForegroundPresentationOptionsCallback(
  1. ForegroundPresentationOptionsCallback? callback
)

Implementation

Future<void> setForegroundPresentationOptionsCallback(ForegroundPresentationOptionsCallback? callback) async {
  if (!Platform.isIOS) {
    return;
  }

  presentationOverridesCallback = callback;

  await _module.channel
      .invokeMethod('push#ios#isOverridePresentationOptionsEnabled', {'enabled': callback != null});
}