Enumeration

Response Codes

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

Declaration

iOS, Mac Catalyst, tvOS, watchOS
enum : CFOptionFlags;
macOS
enum : CFOptionFlags {
    ...
};

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

The default button was pressed.

kCFUserNotificationAlternateResponse

The alternate button was pressed.

kCFUserNotificationOtherResponse

The third button was pressed.

kCFUserNotificationCancelResponse

No button was pressed and the notification timed out.