Contents

CFUserNotificationCancel(_:)

Cancels a user notification dialog.

Declaration

func CFUserNotificationCancel(_ userNotification: CFUserNotification!) -> Int32

Parameters

  • 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