---
title: CFUserNotificationCallBack
framework: Core Foundation
role: symbol
role_heading: Type Alias
path: corefoundation/cfusernotificationcallback
---

# CFUserNotificationCallBack

Callback invoked when an asynchronous user notification dialog is dismissed.

## Declaration

```swift
typealias CFUserNotificationCallBack = (CFUserNotification?, CFOptionFlags) -> Void
```

## Parameters

- `userNotification`: The user notification that was dismissed.
- `responseFlags`: On return, contains flags identifying how the notification was dismissed, the state of any checkboxes, and the selected item of the pop-up menu. See doc://com.apple.corefoundation/documentation/CoreFoundation/CFUserNotificationReceiveResponse(_:_:_:) for details.
