UIUser is deprecated in iOS 10. Use
UNNotification instead. A
UIUser object encapsulates information about custom actions that your app can perform in response to a local or push notification.
- iOS 8.0–10.0Deprecated
Each instance of
UIUser represents a group of actions to display in conjunction with a single notification. The title of each action is uses as the title of a button in the alert displayed to the user. When the user taps a button, the system reports the selected action to your app delegate.
Typically, you create an instance of the
UIMutable class instead of this class. You use the mutable object to add actions and specify a category name before registering them with a
To display a group of actions for a specific notification, configure the local or push notification with the category name of the group. For local notifications, you specify this name when configuring your
UILocal object. For push notifications, your server specifies a group of actions by adding a
category key (whose value is the
identifier of the group) to the push notification’s payload.