Instance Property

category

Name of the action group corresponding to this notification.

Declaration

var category: String? { get set }

Discussion

Categories allow you to present custom actions to the user on your push notifications. For more information, read UIMutableUserNotificationCategory.

See Also

Accessing the Notification Info

var alertBody: String?

The text to use for the alert message.

var alertLocalizationKey: String?

The key that identifies the localized string to use for the alert message.

var alertActionLocalizationKey: String?

The key that identifies the text to use for the action button in the alert panel.

var alertLaunchImage: String?

The filename of an image to use as a launch image.

var soundName: String?

The name of the sound file to play when a notification arrives.

var shouldBadge: Bool

A Boolean setting that controls whether a badge value should be incremented.

var shouldSendContentAvailable: Bool

A Boolean value indicating whether the push notification should include the content-available flag.