Creates a run loop source for a user notification.
- macOS 10.0+
- Core Foundation
The allocator to use to allocate memory for the new object. Pass
NULLor kCFAllocatorDefault to use the current default allocator.
The user notification to use.
The callback function to invoke when the user notification dialog is dismissed.
A priority index indicating the order in which run loop sources are processed. User notifications currently ignore this parameter. Pass
0for this value.
The new CFRunLoopSource object. Ownership follows the The Create Rule.
A run loop source needs to be added to a run loop before it can fire and call its callback function. To add the source to a run loop, use