completeNotificationDisplay method

  1. @override
Future<void> completeNotificationDisplay(
  1. String eventId,
  2. bool discard
)
override

Resolves a pending notificationWillDisplay event, telling the native side whether to show (discard false) or suppress (discard true) the system notification.

Implementation

@override
Future<void> completeNotificationDisplay(String eventId, bool discard) {
  return methodChannel.invokeMethod('notifications#completeDisplay', {
    'eventId': eventId,
    'discard': discard,
  });
}