Platforms to show: All Mac Windows Linux Cross-Platform
UNNotificationResponseMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | User Notifications | MBS MacFrameworks Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
When the user interacts with a delivered notification, the system delivers a UNNotificationResponseMBS object to your app so that you can process the response. Users can interact with delivered notifications in many ways. If the notification’s category had associated action buttons, they can select one of those buttons. Users can also dismiss the notification without selecting one of your actions and they can open your app. A response object tells you which option the user selected.
You don't create UNNotificationResponseMBS objects yourself. Instead, the shared user notification center object creates them and delivers them to the didReceiveNotificationResponse event. Use that method to extract any needed information from the response object and take appropriate action.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 3 properties
- property actionIdentifier as String
- property Handle as Integer
- property notification as UNNotificationMBS
- 2 methods
- method Constructor Private
- method copy as UNNotificationResponseMBS
- 3 shared methods
- shared method Available as boolean
- shared method UNNotificationDefaultActionIdentifier as String
- shared method UNNotificationDismissActionIdentifier as String
Sub classes:
Some events using this class:
- UNUserNotificationCenterMBS.didReceiveNotificationResponse(response as UNNotificationResponseMBS)
The items on this page are in the following plugins: MBS MacFrameworks Plugin.
UNNotificationRequestMBS - UNNotificationSettingsMBS