Cancels a user notification dialog.
- macOS 10.0+
- Core Foundation
The user notification to cancel.
0 if the cancel was successful; a non-
0 value otherwise.
You must cancel a user notification if you want to remove its dialog from the screen before the user dismisses it. It is not sufficient to just release the object.