Class
NotificationResponseAction
Description
The base class for the types of actions a user can take in response to a notification.
Properties
Name |
Type |
Read-Only |
Shared |
---|---|---|---|
Property descriptions
NotificationResponseAction.AuthenticationRequired
AuthenticationRequired As Boolean
If true, the device must be unlocked to display the action.
NotificationResponseAction.BringToForeground
BringToForeground As Boolean
If true, this action brings the app to the foreground.
NotificationResponseAction.Caption
Caption As String
The caption of the button for the action.
NotificationResponseAction.Destructive
Destructive As Boolean
If True, you are indicating that this action is destructive in some way.
A destructive action is one where the user will lose data in a way that isn't reversible or easily reversible.
The captions of destructive actions will be drawn in red. Despite this fact, the caption should make it very clear that the action is destructive.
NotificationResponseAction.Identifier
Identifier As String
The value that will be passed to the NotificationCenter.UserResponded event.
This value allows you to know which action the user took when the NotificationCenter.UserResponded event is called.
Notes
This is a base class. Instances can't be directly instantiated. Instead you create NotificationResponseButton and NotificationResponseTextField object.
Compatibility
iOS projects on the iOS operating system.
See also
Object parent class; NotificationResponseButton and NotificationResponseTextField classes.