<!--
{
  "availability" : [
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CFUserNotificationCheckBoxChecked(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@F@CFUserNotificationCheckBoxChecked"
  },
  "title" : "CFUserNotificationCheckBoxChecked(_:)"
}
-->

# CFUserNotificationCheckBoxChecked(_:)

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

```
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 [`kCFUserNotificationCheckBoxTitlesKey`](/documentation/CoreFoundation/kCFUserNotificationCheckBoxTitlesKey) array of the user notification’s description dictionary. `idx` must be in the range `0` to `7`.

## Return Value

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)