iOSForegroundPresentationOptions method

  1. @override
Future iOSForegroundPresentationOptions(
  1. List<iOSNotificationPresentationOption> options
)
override

Implementation

@override
Future iOSForegroundPresentationOptions(List<iOSNotificationPresentationOption> options) async {

  // Skip other platforms. Do not show error
  if (!Platform.isIOS) return;

  return await channel.invokeMethod('iOSForegroundPresentationOptions', {
    'options': options.map((option) => option.value).toList(),
  });

}