setPresentationOptions static method

Future<void> setPresentationOptions(
  1. List<String> options
)

Defines the presentation options for displaying notifications while the app is in the foreground.

Note: This method is only supported on iOS.

  • options: The presentation options to be set.

Implementation

static Future<void> setPresentationOptions(List<String> options) async {
  if (Platform.isIOS) {
    await _channel.invokeMapMethod('setPresentationOptions', options);
  }
}