Platforms to show: All Mac Windows Linux Cross-Platform
Back to UNNotificationCategoryMBS class.
UNNotificationCategoryMBS.actions as UNNotificationActionMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | User Notifications | MBS MacFrameworks Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
When displaying a notification assigned to this category, the system adds a button to the notification interface for each action in this property. These buttons are displayed after the notification’s content but before the Dismiss button.
When displaying banner notifications, the system displays only the first two actions.
UNNotificationCategoryMBS.Constructor(identifier as String, actions() as UNNotificationActionMBS, intentIdentifiers() as string, hiddenPreviewsBodyPlaceholder as String, categorySummaryFormat as String, options as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | User Notifications | MBS MacFrameworks Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
See also:
UNNotificationCategoryMBS.Constructor(identifier as String, actions() as UNNotificationActionMBS, intentIdentifiers() as string, hiddenPreviewsBodyPlaceholder as String, options as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | User Notifications | MBS MacFrameworks Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
identifier: The unique identifier for the category. Each category that your app uses must have a unique identifier. Do not specify an empty string.
actions: The actions to display when notifications of this type are delivered. When minimal space is available, only the first two actions in the array are displayed. You may specify nil for this parameter if you do not want to display custom actions.
intentIdentifiers: The intent identifier strings that you want to associate with notifications of this type. The Intents framework defines constants for each type of intent that you can associate with your notifications.
hiddenPreviewsBodyPlaceholder: A placeholder string to display when the user has disabled notification previews for the app. Include the characters %u in the string to represent the number of notifications with the same thread identifier. (No other formatting characters are supported.) For example, the string "%u Messages" becomes "2 Messages" when there are two messages.
To specify different strings for the singular and plural cases, use the localizedUserNotificationStringForKey method of string to specify the value for this parameter. The key passed to that method contains the identifier of an entry in a .stringsdict property list of your project. A strings dictionary lets you specify different formatted strings based on the language rules, and is as described in Internationalization and Localization Guide.
options: Additional options for handling notifications of this type. For a list of possible values, see UNNotificationCategoryOptions.
See also:
- Constructor(identifier as String, actions() as UNNotificationActionMBS, intentIdentifiers() as string, hiddenPreviewsBodyPlaceholder as String, categorySummaryFormat as String, options as Integer)
- Constructor(identifier as String, actions() as UNNotificationActionMBS, intentIdentifiers() as string, options as Integer)
UNNotificationCategoryMBS.Constructor(identifier as String, actions() as UNNotificationActionMBS, intentIdentifiers() as string, options as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | User Notifications | MBS MacFrameworks Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
identifier: The unique identifier for the category. Each category that your app uses must have a unique identifier. Do not specify an empty string.
actions: The actions to display when notifications of this type are delivered. When minimal space is available, only the first two actions in the array are displayed. You may specify nil for this parameter if you do not want to display custom actions.
intentIdentifiers: The intent identifier strings that you want to associate with notifications of this type. The Intents framework defines constants for each type of intent that you can associate with your notifications.
options: Additional options for handling notifications of this type. For a list of possible values, see UNNotificationCategoryOptions.
Returns an initialized category object.
See also:
- Constructor(identifier as String, actions() as UNNotificationActionMBS, intentIdentifiers() as string, hiddenPreviewsBodyPlaceholder as String, categorySummaryFormat as String, options as Integer)
- Constructor(identifier as String, actions() as UNNotificationActionMBS, intentIdentifiers() as string, hiddenPreviewsBodyPlaceholder as String, options as Integer)
UNNotificationCategoryMBS.copy as UNNotificationCategoryMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | User Notifications | MBS MacFrameworks Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
UNNotificationCategoryMBS.intentIdentifiers as String()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | User Notifications | MBS MacFrameworks Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
When a notification is delivered, the presence of an intent identifier lets the system know that the notification is potentially related to the handling of a request made through Siri.
The items on this page are in the following plugins: MBS MacFrameworks Plugin.