Instance Method

removePendingNotificationRequests(withIdentifiers:)

Unschedules the specified notification requests.

Declaration

func removePendingNotificationRequests(withIdentifiers identifiers: [String])

Parameters

identifiers

An array of NSString objects, each of which contains the identifier of an active UNNotificationRequest object. If the identifier belongs to a non repeating request, and the trigger condition for that request has already been met, this method ignores the identifier.

Discussion

This method executes asynchronously, removing the pending notification requests on a secondary thread.

See Also

Scheduling and Canceling Notification Requests

func getPendingNotificationRequests(completionHandler: ([UNNotificationRequest]) -> Void)

Returns a list of all notification requests that are scheduled and waiting to be delivered.

func removeAllPendingNotificationRequests()

Unschedules all pending notification requests.