JUCE
|
Public Types | |
enum | Style { button, text } |
Controls the appearance of this action. More... | |
Public Attributes | |
Common fields | |
Style | style = button |
String | title |
Required. More... | |
String | textInputPlaceholder |
Optional: placeholder text for text input notification. More... | |
var | parameters |
Optional: additional parameters that can be passed. More... | |
iOS only fields | |
String | identifier |
Required: unique identifier. More... | |
bool | triggerInBackground = false |
Whether the app can process the action in background. More... | |
bool | destructive = false |
Whether to display the action as destructive. More... | |
String | textInputButtonText |
Optional: Text displayed on text input notification button (from iOS 10 only). More... | |
Android only fields | |
String | icon |
Optional: name of an icon file (without an extension) to be used for this action. More... | |
StringArray | allowedResponses |
Optional: a list of possible answers if the answer set is limited. More... | |
String juce::PushNotifications::Notification::Action::title |
Required.
the name of the action displayed to the user.
String juce::PushNotifications::Notification::Action::textInputPlaceholder |
Optional: placeholder text for text input notification.
Note that it will be ignored if button style is used.
var juce::PushNotifications::Notification::Action::parameters |
Optional: additional parameters that can be passed.
String juce::PushNotifications::Notification::Action::identifier |
Required: unique identifier.
This should be one of the identifiers set with requestPermissionsWithSettings().
bool juce::PushNotifications::Notification::Action::triggerInBackground = false |
Whether the app can process the action in background.
bool juce::PushNotifications::Notification::Action::destructive = false |
Whether to display the action as destructive.
String juce::PushNotifications::Notification::Action::textInputButtonText |
Optional: Text displayed on text input notification button (from iOS 10 only).
Note that it will be ignored if style is set to Style::button.
String juce::PushNotifications::Notification::Action::icon |
Optional: name of an icon file (without an extension) to be used for this action.
This must be the name of one of the image files included into resources when exporting an Android project (see "Extra Android Raw Resources" setting in Projucer). Note that not all Android versions support an icon for an action, though it is recommended to provide it nevertheless.
StringArray juce::PushNotifications::Notification::Action::allowedResponses |
Optional: a list of possible answers if the answer set is limited.
When left empty, then the user will be able to input any text.