Platforms to show: All Mac Windows Linux Cross-Platform

Back to UNNotificationActionMBS class.

UNNotificationActionMBS.OptionAuthenticationRequired = 1

Type Topic Plugin Version
const User Notifications MBS MacFrameworks Plugin 19.1
One of the option constants.

The action can be performed only on an unlocked device.
When the user selects an action with this option, the system prompts the user to unlock the device. After unlocking, the system notifies your app of the selected action. You might use option to perform actions that require accessing data that is encrypted while the device is locked.

UNNotificationActionMBS.OptionDestructive = 2

Type Topic Plugin Version
const User Notifications MBS MacFrameworks Plugin 19.1
One of the option constants.

The action performs a destructive task.
Use this option for actions that delete user data or change the app irrevocably. The action button is displayed with special highlighting to indicate that it performs a destructive task.

UNNotificationActionMBS.OptionForeground = 4

Type Topic Plugin Version
const User Notifications MBS MacFrameworks Plugin 19.1
One of the option constants.

The action causes the app to launch in the foreground.
When the user selects an action containing this option, the system brings the app to the foreground, asking the user to unlock the device as needed. Use this option for actions that require the user to interact further with your app. Do not use this option simply to bring your app to the foreground.

UNNotificationActionMBS.OptionNone = 0

Type Topic Plugin Version
const User Notifications MBS MacFrameworks Plugin 19.1
One of the option constants.

The action has the default behavior.

The items on this page are in the following plugins: MBS MacFrameworks Plugin.


💬 Ask a question or report a problem
The biggest plugin in space...