MobileNotifications.AddResponseCategory

From Xojo Documentation

Method

MobileNotifications.AddResponseCategory(category as NotificationResponseCategory)

New in 2020r2

Supported for all project types and targets.

Adds a set of buttons and/or text entry fields so incoming notifications can be interactive.

Sample Code

Add a response category that will display a dialog with a message and two buttons when the LargePizzaSale notification is received:

Var responseCategory As New NotificationResponseCategory("LargePizzaSale")
responseCategory.Caption = "Large pizzas are on sale tonight only!"
responseCategory.Actions.Add(New NotificationResponseButton("Order!", "yes")
responseCategory.Actions.Add(New NotificationResponseButton("No Thanks", "no")
NotificationCenter.AddResponseCategory(responseCategory)

See Also

NotificationResponseCategory class.