---
title: Response Codes
framework: Core Foundation
role: collectionGroup
role_heading: API Collection
path: corefoundation/1534504-response-codes
---

# Response Codes

Response codes identifying the button that was pressed to dismiss a notification dialog.

## Overview

Overview To extract this value from the response flags of a dismissed notification (such as returned by CFUserNotificationReceiveResponse(_:_:_:)), you must perform a bitwise-AND operation between the returned response flags and 0x3 before comparing the value to these constants.

## Topics

### Constants

- [kCFUserNotificationDefaultResponse](corefoundation/kcfusernotificationdefaultresponse.md)
- [kCFUserNotificationAlternateResponse](corefoundation/kcfusernotificationalternateresponse.md)
- [kCFUserNotificationOtherResponse](corefoundation/kcfusernotificationotherresponse.md)
- [kCFUserNotificationCancelResponse](corefoundation/kcfusernotificationcancelresponse.md)

## See Also

### Constants

- [Alert Levels](corefoundation/1534483-alert-levels.md)
- [Button Flags](corefoundation/1534481-button-flags.md)
- [Alert Levels](corefoundation/1534483-alert-levels.md)
- [Button Flags](corefoundation/1534481-button-flags.md)
- [Dialog Description Keys](corefoundation/dialog-description-keys.md)
