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: Unity.Notifications.iOS.dll
Syntax
public class iOSNotificationCategory
Constructors
iOSNotificationCategory(string)
Create notification category. Category must be registered using iOSNotificationCenter.SetNotificationCategories.
Declaration
public iOSNotificationCategory(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id | A unique identifier for this category |
See Also
iOSNotificationCategory(string, IEnumerable<iOSNotificationAction>)
Create notification category. Category must be registered using iOSNotificationCenter.SetNotificationCategories.
Declaration
public iOSNotificationCategory(string id, IEnumerable<iOSNotificationAction> actions)
Parameters
Type | Name | Description |
---|---|---|
string | id | A unique identifier for this category |
IEnumerable<iOSNotificationAction> | actions | Add provided actions to this category |
See Also
iOSNotificationCategory(string, IEnumerable<iOSNotificationAction>, IEnumerable<string>)
Create notification category. Category must be registered using iOSNotificationCenter.SetNotificationCategories.
Declaration
public iOSNotificationCategory(string id, IEnumerable<iOSNotificationAction> actions, IEnumerable<string> intentIdentifiers)
Parameters
Type | Name | Description |
---|---|---|
string | id | A unique identifier for this category |
IEnumerable<iOSNotificationAction> | actions | Add provided actions to this category |
IEnumerable<string> | intentIdentifiers | Add provided intent identifiers to this category |
See Also
Properties
Actions
Get actions set for this category. For more information, refer to iOSNotificationAction.
Declaration
public iOSNotificationAction[] Actions { get; }
Property Value
Type | Description |
---|---|
iOSNotificationAction[] |
See Also
HiddenPreviewsBodyPlaceholder
The placeholder text to display when the system disables notification previews for the app.
Declaration
public string HiddenPreviewsBodyPlaceholder { get; set; }
Property Value
Type | Description |
---|---|
string |
See Also
Id
A unique identifier for this category.
Declaration
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string |
See Also
IntentIdentifiers
Intent identifiers set for this category.
Declaration
public string[] IntentIdentifiers { get; }
Property Value
Type | Description |
---|---|
string[] |
See Also
Options
Options for how to handle notifications of this type.
Declaration
public iOSNotificationCategoryOptions Options { get; set; }
Property Value
Type | Description |
---|---|
iOSNotificationCategoryOptions |
See Also
SummaryFormat
A format string used for the summary description when the system groups the notifications based on their category.
Declaration
public string SummaryFormat { get; set; }
Property Value
Type | Description |
---|---|
string |
See Also
Methods
AddAction(iOSNotificationAction)
Add action to this category. Actions must be added prior to registering the category.
Declaration
public void AddAction(iOSNotificationAction action)
Parameters
Type | Name | Description |
---|---|---|
iOSNotificationAction | action | Action to add |
See Also
AddActions(IEnumerable<iOSNotificationAction>)
Add actions to this category. Actions must be added prior to registering the category.
Declaration
public void AddActions(IEnumerable<iOSNotificationAction> actions)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<iOSNotificationAction> | actions | Actions to add |
See Also
AddIntentIdentifier(string)
Add intent identifier to this category. Intent identifiers must be added prior to registering the category.
Declaration
public void AddIntentIdentifier(string identifier)
Parameters
Type | Name | Description |
---|---|---|
string | identifier | Intent identifier to add |
See Also
AddIntentIdentifiers(IEnumerable<string>)
Add intent identifier to this category. Intent identifiers must be added prior to registering the category.
Declaration
public void AddIntentIdentifiers(IEnumerable<string> identifiers)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<string> | identifiers | Intent identifiers to add |