---
title: "CFUserNotificationCheckBoxChecked(_:)"
framework: Core Foundation
role: symbol
role_heading: Function
platforms: [macOS 10.0+]
path: "corefoundation/cfusernotificationcheckboxchecked(_:)"
---

# CFUserNotificationCheckBoxChecked(_:)

Returns a flag used to set or test a checkbox’s state.

## Declaration

```swift
func CFUserNotificationCheckBoxChecked(_ i: CFIndex) -> CFOptionFlags
```

## Parameters

- `i`: The index of the checkbox to set or test. The index corresponds to the order in which the checkbox titles are listed in the doc://com.apple.corefoundation/documentation/CoreFoundation/kCFUserNotificationCheckBoxTitlesKey array of the user notification’s description dictionary. idx must be in the range 0 to 7.

## Return Value

Return Value A flag that can be used either to set the state of a checkbox when creating a user notification with CFUserNotificationCreate(_:_:_:_:_:) or to test a checkbox’s state returned in a user notification’s response flags, such as from CFUserNotificationReceiveResponse(_:_:_:), when the notification dialog is dismissed.

## See Also

### CFUserNotification Miscellaneous Functions

- [CFUserNotificationCancel(_:)](corefoundation/cfusernotificationcancel(_:).md)
- [CFUserNotificationCreate(_:_:_:_:_:)](corefoundation/cfusernotificationcreate(_:_:_:_:_:).md)
- [CFUserNotificationCreateRunLoopSource(_:_:_:_:)](corefoundation/cfusernotificationcreaterunloopsource(_:_:_:_:).md)
- [CFUserNotificationDisplayAlert(_:_:_:_:_:_:_:_:_:_:_:)](corefoundation/cfusernotificationdisplayalert(_:_:_:_:_:_:_:_:_:_:_:).md)
- [CFUserNotificationDisplayNotice(_:_:_:_:_:_:_:_:)](corefoundation/cfusernotificationdisplaynotice(_:_:_:_:_:_:_:_:).md)
- [CFUserNotificationGetResponseDictionary(_:)](corefoundation/cfusernotificationgetresponsedictionary(_:).md)
- [CFUserNotificationGetResponseValue(_:_:_:)](corefoundation/cfusernotificationgetresponsevalue(_:_:_:).md)
- [CFUserNotificationGetTypeID()](corefoundation/cfusernotificationgettypeid().md)
- [CFUserNotificationPopUpSelection(_:)](corefoundation/cfusernotificationpopupselection(_:).md)
- [CFUserNotificationReceiveResponse(_:_:_:)](corefoundation/cfusernotificationreceiveresponse(_:_:_:).md)
- [CFUserNotificationSecureTextField(_:)](corefoundation/cfusernotificationsecuretextfield(_:).md)
- [CFUserNotificationUpdate(_:_:_:_:)](corefoundation/cfusernotificationupdate(_:_:_:_:).md)
