Class iOSNotificationAction
Represents action for an actionable notification. Actions are supposed to be added to notification categories, which are then registered prior to sending notifications. User can choose to tap a notification or one of associated actions. Application gets feedback of the choice.
Inherited Members
Namespace: Unity.Notifications.iOS
Assembly: solution.dll
Syntax
public class iOSNotificationAction
Constructors
| Name | Description |
|---|---|
| iOSNotificationAction(string, string) | Creates new action. |
| iOSNotificationAction(string, string, iOSNotificationActionOptions) | Creates new action. |
Properties
| Name | Description |
|---|---|
| Id | An identifier for this action. Each action within an application unique must have unique ID. This ID will be returned by iOSNotificationCenter.GetLastRespondedNotificationAction if user chooses this action. |
| Options | Options for the action. Can be a combination of given flags. Refer to Apple documentation for UNNotificationActionOptions for exact meanings. https://developer.apple.com/documentation/usernotifications/unnotificationactionoptions |
| SystemImageName | Set the icon for action using system symbol image name. https://developer.apple.com/documentation/usernotifications/unnotificationactionicon/3747241-iconwithsystemimagename?language=objc |
| TemplateImageName | Set the icon for action using image from app's bundle. https://developer.apple.com/documentation/usernotifications/unnotificationactionicon/3747242-iconwithtemplateimagename?language=objc |
| Title | Title for the action. This will be the title of the button that appears below the notification. |