Adds a notification to the notification queue with a specified posting style, criteria for coalescing, and run loop mode.
- iOS 2.0+
- macOS 10.0+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The notification to add to the queue.
The posting style for the notification. The posting style indicates when the notification queue should post the notification to its notification center.
The list of modes the notification may be posted in. The notification queue will only post the notification to its notification center if the run loop is in one of the modes provided in the array.
This parameter may be
nil, in which case it defaults to
Run Loop Mode