Class

NotificationResponseCategory


Description

A group of buttons/and or textfields that allow the user a way to respond to a notification directly without having to bring the app to the foreground.

Methods

Name

Parameters

Returns

Shared

Constructor

identifier As String

Property descriptions


NotificationResponseCategory.Actions()

Actions() As NotificationResponseAction

The list of actions the user can take in response to the notification.

The list of actions your app provides will be truncated by iOS if there's insufficient space in which to display them all. Thus, place the most important actions first.

Create a NotificationResponseCategory then add a button to it:

Var pizzaCategory As New NotificationResponseCategory("pizzaSale")
Var orderButton As New NotificationResponseButton("Order Now!", "order")
pizzaCategory.Actions.Add(orderButton)

NotificationResponseCategory.AllowAnnouncement

AllowAnnouncement As Boolean

If true, notifications will automatically be read by Siri when the user is using AirPods.


NotificationResponseCategory.AllowInCarPlay

AllowInCarPlay As Boolean

If true, notifications using this object will be displayed in CarPlay.


NotificationResponseCategory.CustomDismiss

CustomDismiss As Boolean

If True, send dismiss actions to the NotificationCenter.UserResponded event for handling.


NotificationResponseCategory.HiddenPreviewsBody

HiddenPreviewsBody As String

Placeholder text to be shown even if the user has disabled notification previews for the app.


NotificationResponseCategory.HiddenPreviewShowsSubtitle

HiddenPreviewShowsSubtitle As Boolean

Shows the notification's subtitle even if the user has disabled notification previews for the app.


NotificationResponseCategory.HiddenPreviewShowsTitle

HiddenPreviewShowsTitle As Boolean

Shows the notification's title even if the user has disabled notification previews for the app.


NotificationResponseCategory.Identifier

Identifier As String

The unique set of characters assigned to the category.

Method descriptions


NotificationResponseCategory.Constructor

Constructor(identifier As String)

Note

Constructors are special methods called when you create an object with the New keyword and pass in the parameters above.

Creates a new NotificationResponseCategory with the identifier passed.

Var pizzaCategory = New NotificationResponseCategory("pizzaSale")

Notes

The list of actions your app provides will be truncated by iOS if there's insufficient space in which to display them all. Thus, place the most important actions first.

Compatibility

iOS projects on the iOS operating system.