JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Types | List of all members
juce::PushNotifications::Notification::Action Struct Reference

Represents an action on a notification that can be presented as a button or a text input. More...

#include "juce_PushNotifications.h"

Public Types

enum  Style { button , text }
 Controls the appearance of this action. More...
 

Public Attributes

Common fields
Style style
 
String title
 Required.
 
String textInputPlaceholder
 Optional: placeholder text for text input notification.
 
var parameters
 Optional: additional parameters that can be passed.
 
iOS only fields
String identifier
 Required: unique identifier.
 
bool triggerInBackground
 Whether the app can process the action in background.
 
bool destructive
 Whether to display the action as destructive.
 
String textInputButtonText
 Optional: Text displayed on text input notification button (from iOS 10 only).
 
Android only fields
String icon
 Optional: name of an icon file (without an extension) to be used for this action.
 
StringArray allowedResponses
 Optional: a list of possible answers if the answer set is limited.
 

Detailed Description

Represents an action on a notification that can be presented as a button or a text input.

On Android, each notification has its action specified explicitly, on iOS you configure an allowed set of actions on startup and pack them into categories (see Settings).

Definition at line 66 of file juce_PushNotifications.h.

Member Enumeration Documentation

◆ Style

Controls the appearance of this action.

Enumerator
button 

Show this action as a button.

text 

Show this action as a text input field (on Android API 20 or higher is required).

Definition at line 69 of file juce_PushNotifications.h.

Member Data Documentation

◆ allowedResponses

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.

Definition at line 104 of file juce_PushNotifications.h.

◆ destructive

bool juce::PushNotifications::Notification::Action::destructive

Whether to display the action as destructive.

Definition at line 89 of file juce_PushNotifications.h.

◆ icon

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.

Definition at line 97 of file juce_PushNotifications.h.

◆ identifier

String juce::PushNotifications::Notification::Action::identifier

Required: unique identifier.

This should be one of the identifiers set with requestPermissionsWithSettings().

Definition at line 86 of file juce_PushNotifications.h.

◆ parameters

var juce::PushNotifications::Notification::Action::parameters

Optional: additional parameters that can be passed.

Definition at line 81 of file juce_PushNotifications.h.

◆ style

Style juce::PushNotifications::Notification::Action::style

Definition at line 77 of file juce_PushNotifications.h.

◆ textInputButtonText

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.

Definition at line 90 of file juce_PushNotifications.h.

◆ textInputPlaceholder

String juce::PushNotifications::Notification::Action::textInputPlaceholder

Optional: placeholder text for text input notification.

Note that it will be ignored if button style is used.

Definition at line 79 of file juce_PushNotifications.h.

◆ title

String juce::PushNotifications::Notification::Action::title

Required.

the name of the action displayed to the user.

Definition at line 78 of file juce_PushNotifications.h.

◆ triggerInBackground

bool juce::PushNotifications::Notification::Action::triggerInBackground

Whether the app can process the action in background.

Definition at line 88 of file juce_PushNotifications.h.


The documentation for this struct was generated from the following file: