Class
NotificationResponseTextField
Description
Class for actions which should be presented as a text field for the user to type into and a button to submit the data.
Properties
Name |
Type |
Read-Only |
Shared |
---|---|---|---|
Methods
Name |
Parameters |
Returns |
Shared |
---|---|---|---|
caption As String, hint As String, sendCaption As String, identifier As String |
Property descriptions
NotificationResponseTextField.AuthenticationRequired
AuthenticationRequired As Boolean
If true, the device must be unlocked to display the action.
NotificationResponseTextField.BringToForeground
BringToForeground As Boolean
If true, this action brings the app to the foreground.
NotificationResponseTextField.ButtonCaption
ButtonCaption As String
The caption to put on the button that is placed next to the text field.
NotificationResponseTextField.Caption
Caption As String
The caption of the button for the action.
NotificationResponseTextField.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.
NotificationResponseTextField.Hint
Hint As String
The hint that is placed within the text field.
NotificationResponseTextField.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.
Method descriptions
NotificationResponseTextField.Constructor
Constructor(caption As String, hint As String, sendCaption As String, identifier As String)
Note
Constructors are special methods called when you create an object with the New keyword and pass in the parameters above.
Makes a new NotificationResponseTextField and sets the action button's caption, the text fieln's hint, the caption of the button beside the text field and the identifier.
Compatibility
iOS projects on the iOS operating system.
See also
NotificationResponseAction parent class; NotificationResponseButton class.