Instance Property

identifier

The unique string assigned to the category.

Declaration

var identifier: String { get }

Discussion

Use this string to differentiate the different types of notifications that your app can send. To assign a category to a local notification, assign this string to the categoryIdentifier property of the content object. To assign a category to a remote notification, use the string as the value of the category key in the aps dictionary of the notification payload.

See Also

Getting the Category Information

var actions: [UNNotificationAction]

The actions to display when a notification of this type is presented.

var intentIdentifiers: [String]

The intents related to notifications of this category.

var hiddenPreviewsBodyPlaceholder: String

The placeholder text to display when notification previews are disabled for the app.

var categorySummaryFormat: String

A format string for the summary description used when the system groups the category’s notifications.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software