CFUserNotificationCancel(_:)
Cancels a user notification dialog.
Declaration
func CFUserNotificationCancel(_ userNotification: CFUserNotification!) -> Int32Parameters
- userNotification:
The user notification to cancel.
Return Value
0 if the cancel was successful; a non-0 value otherwise.
Discussion
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.
See Also
CFUserNotification Miscellaneous Functions
CFUserNotificationCheckBoxChecked(_:)CFUserNotificationCreate(_:_:_:_:_:)CFUserNotificationCreateRunLoopSource(_:_:_:_:)CFUserNotificationDisplayAlert(_:_:_:_:_:_:_:_:_:_:_:)CFUserNotificationDisplayNotice(_:_:_:_:_:_:_:_:)CFUserNotificationGetResponseDictionary(_:)CFUserNotificationGetResponseValue(_:_:_:)CFUserNotificationGetTypeID()CFUserNotificationPopUpSelection(_:)CFUserNotificationReceiveResponse(_:_:_:)CFUserNotificationSecureTextField(_:)CFUserNotificationUpdate(_:_:_:_:)