Returns a list of all notification requests that are scheduled and waiting to be delivered.
- iOS 10.0+
- macOS 10.14+
- Mac Catalyst 13.0+
- tvOS 10.0+
- watchOS 3.0+
A block for processing notification requests. This block may be executed on a background thread. The block has no return value and takes a single parameter.
An array of
UNNotificationobjects representing the scheduled notification requests. If there are no scheduled requests, this array is empty.
This method executes asynchronously, returning immediately and executing the provided block on a secondary thread when the results are available.