Contents

CFUserNotificationCheckBoxChecked(_:)

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

Declaration

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 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(_:_:_:_:_:) 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