30#if ! JUCE_ANDROID && ! JUCE_IOS && ! JUCE_MAC
78 #if JUCE_PUSH_NOTIFICATIONS
79 : pimpl (
new Pimpl (*
this))
91 #if JUCE_PUSH_NOTIFICATIONS && (JUCE_IOS || JUCE_MAC)
92 pimpl->requestPermissionsWithSettings (settings);
101 #if JUCE_PUSH_NOTIFICATIONS && (JUCE_IOS || JUCE_MAC)
102 pimpl->requestSettingsUsed();
110 #if JUCE_PUSH_NOTIFICATIONS
111 return pimpl->areNotificationsEnabled();
119 #if JUCE_PUSH_NOTIFICATIONS
120 pimpl->getDeliveredNotifications();
126 #if JUCE_PUSH_NOTIFICATIONS
127 pimpl->removeAllDeliveredNotifications();
133 #if JUCE_PUSH_NOTIFICATIONS
134 return pimpl->getDeviceToken();
142 #if JUCE_PUSH_NOTIFICATIONS
143 pimpl->setupChannels (groups, channels);
151 #if JUCE_PUSH_NOTIFICATIONS
152 pimpl->getPendingLocalNotifications();
158 #if JUCE_PUSH_NOTIFICATIONS
159 pimpl->removeAllPendingLocalNotifications();
165 #if JUCE_PUSH_NOTIFICATIONS
166 pimpl->subscribeToTopic (topic);
174 #if JUCE_PUSH_NOTIFICATIONS
175 pimpl->unsubscribeFromTopic (topic);
184 #if JUCE_PUSH_NOTIFICATIONS
185 pimpl->sendLocalNotification (
n);
193 #if JUCE_PUSH_NOTIFICATIONS
194 pimpl->removeDeliveredNotification (identifier);
202 #if JUCE_PUSH_NOTIFICATIONS
203 pimpl->removePendingLocalNotification (identifier);
210 const String& collapseKey,
212 const String& messageType,
216 #if JUCE_PUSH_NOTIFICATIONS
217 pimpl->sendUpstreamMessage (serverSenderId,
224 ignoreUnused (serverSenderId, collapseKey, messageId, messageType);
#define noexcept
Definition DistrhoDefines.h:72
#define nullptr
Definition DistrhoDefines.h:75
Definition juce_Array.h:56
void setupChannels(const Array< ChannelGroup > &groups, const Array< Channel > &channels)
Definition juce_PushNotifications.cpp:140
ListenerList< PushNotifications::Listener > listeners
Definition juce_PushNotifications.h:698
void removePendingLocalNotification(const String &identifier)
Definition juce_PushNotifications.cpp:200
void getPendingLocalNotifications() const
Definition juce_PushNotifications.cpp:149
void addListener(Listener *l)
Definition juce_PushNotifications.cpp:86
void removeAllPendingLocalNotifications()
Definition juce_PushNotifications.cpp:156
void subscribeToTopic(const String &topic)
Definition juce_PushNotifications.cpp:163
void getDeliveredNotifications() const
Definition juce_PushNotifications.cpp:117
void removeAllDeliveredNotifications()
Definition juce_PushNotifications.cpp:124
void removeDeliveredNotification(const String &identifier)
Definition juce_PushNotifications.cpp:191
bool areNotificationsEnabled() const
Definition juce_PushNotifications.cpp:108
~PushNotifications() override
Definition juce_PushNotifications.cpp:84
void sendUpstreamMessage(const String &serverSenderId, const String &collapseKey, const String &messageId, const String &messageType, int timeToLive, const StringPairArray &additionalData)
Definition juce_PushNotifications.cpp:209
PushNotifications()
Definition juce_PushNotifications.cpp:77
void sendLocalNotification(const Notification ¬ification)
Definition juce_PushNotifications.cpp:182
void removeListener(Listener *l)
Definition juce_PushNotifications.cpp:87
void unsubscribeFromTopic(const String &topic)
Definition juce_PushNotifications.cpp:172
void requestSettingsUsed()
Definition juce_PushNotifications.cpp:99
void requestPermissionsWithSettings(const Settings &settings)
Definition juce_PushNotifications.cpp:89
String getDeviceToken() const
Definition juce_PushNotifications.cpp:131
Definition juce_String.h:53
Definition juce_StringPairArray.h:35
int * l
Definition inflate.c:1579
#define JUCE_IMPLEMENT_SINGLETON(Classname)
Definition juce_Singleton.h:201
Definition carla_juce.cpp:31
void ignoreUnused(Types &&...) noexcept
Definition juce_MathsFunctions.h:333
Definition juce_PushNotifications.h:594
Definition juce_PushNotifications.h:55
Image largeIcon
Definition juce_PushNotifications.h:175
BadgeIconType badgeIconType
Definition juce_PushNotifications.h:305
Progress progress
Definition juce_PushNotifications.h:193
Colour accentColour
Definition juce_PushNotifications.h:252
String body
Definition juce_PushNotifications.h:117
String icon
Definition juce_PushNotifications.h:167
bool localOnly
Definition juce_PushNotifications.h:275
Array< int > vibrationPattern
Definition juce_PushNotifications.h:266
String groupId
Definition juce_PushNotifications.h:123
TimestampVisibility timestampVisibility
Definition juce_PushNotifications.h:295
Array< Action > actions
Definition juce_PushNotifications.h:179
String channelId
Definition juce_PushNotifications.h:172
bool repeat
Definition juce_PushNotifications.h:158
int timeoutAfterMs
Definition juce_PushNotifications.h:319
GroupAlertBehaviour groupAlertBehaviour
Definition juce_PushNotifications.h:317
double triggerIntervalSec
Definition juce_PushNotifications.h:157
bool alertOnlyOnce
Definition juce_PushNotifications.h:283
int badgeNumber
Definition juce_PushNotifications.h:127
String tickerText
Definition juce_PushNotifications.h:177
Type type
Definition juce_PushNotifications.h:230
String title
Definition juce_PushNotifications.h:116
String subtitle
Definition juce_PushNotifications.h:118
String person
Definition juce_PushNotifications.h:226
bool groupSummary
Definition juce_PushNotifications.h:249
String identifier
Definition juce_PushNotifications.h:113
bool shouldAutoCancel
Definition juce_PushNotifications.h:273
var properties
Definition juce_PushNotifications.h:147
bool ongoing
Definition juce_PushNotifications.h:278
Priority priority
Definition juce_PushNotifications.h:231
String category
Definition juce_PushNotifications.h:155
std::unique_ptr< Notification > publicVersion
Definition juce_PushNotifications.h:243
bool isValid() const noexcept
Definition juce_PushNotifications.cpp:31
LockScreenAppearance lockScreenAppearance
Definition juce_PushNotifications.h:241
String groupSortKey
Definition juce_PushNotifications.h:248
LedBlinkPattern ledBlinkPattern
Definition juce_PushNotifications.h:264
URL soundToPlay
Definition juce_PushNotifications.h:128
Colour ledColour
Definition juce_PushNotifications.h:254
Definition juce_mac_PushNotifications.cpp:357
Definition juce_PushNotifications.h:388
int n
Definition crypt.c:458
#define const
Definition zconf.h:137