Instance Method

removeAllDeliveredNotifications()

Removes all of the app’s notifications from Notification Center.

Declaration

func removeAllDeliveredNotifications()

Discussion

Use this method to remove all of your app’s notifications from Notification Center. The method executes asynchronously, returning immediately and removing the identifiers on a background thread.

See Also

Managing Delivered Notifications

func getDeliveredNotifications(completionHandler: ([UNNotification]) -> Void)

Provides you with a list of the app’s notifications that are still displayed in Notification Center.

func removeDeliveredNotifications(withIdentifiers: [String])

Removes the specified notifications from Notification Center.