Class iOSNotificationCategory
Represents notification category. Notification categories need to be registered on application start to be useful. By adding actions to category, you make all notification sent with this category identifier actionable.
Inherited Members
Namespace: Unity.Notifications.iOS
Assembly: solution.dll
Syntax
public class iOSNotificationCategory
Constructors
| Name | Description |
|---|---|
| iOSNotificationCategory(string) | Create notification category. Category must be registered using iOSNotificationCenter.SetNotificationCategories. |
| iOSNotificationCategory(string, IEnumerable<iOSNotificationAction>) | Create notification category. Category must be registered using iOSNotificationCenter.SetNotificationCategories. |
| iOSNotificationCategory(string, IEnumerable<iOSNotificationAction>, IEnumerable<string>) | Create notification category. Category must be registered using iOSNotificationCenter.SetNotificationCategories. |
Properties
| Name | Description |
|---|---|
| Actions | Get actions set for this category. For more info see iOSNotificationAction. |
| HiddenPreviewsBodyPlaceholder | The placeholder text to display when the system disables notification previews for the app. https://developer.apple.com/documentation/usernotifications/unnotificationcategory/2873736-hiddenpreviewsbodyplaceholder |
| Id | A unique identifier for this category. |
| IntentIdentifiers | Intent identifiers set for this category. https://developer.apple.com/documentation/usernotifications/unnotificationcategory/1649282-intentidentifiers |
| Options | Options for how to handle notifications of this type. |
| SummaryFormat | A format string for the summary description used when the system groups the category’s notifications. https://developer.apple.com/documentation/usernotifications/unnotificationcategory/2963112-categorysummaryformat |
Methods
| Name | Description |
|---|---|
| AddAction(iOSNotificationAction) | Add action to this category. Actions must be added prior to registering the category. |
| AddActions(IEnumerable<iOSNotificationAction>) | Add actions to this category. Actions must be added prior to registering the category. |
| AddIntentIdentifier(string) | Add intent identifier to this category. Intent identifiers must be added prior to registering the category. |
| AddIntentIdentifiers(IEnumerable<string>) | Add intent identifier to this category. Intent identifiers must be added prior to registering the category. |