MoSync 3.3
Notification::PushNotification Class Reference

Push notifications are used for displaying alerts, playing sounds and for badging application icon. A push notification is send from a server and received by an application. An application can register for receiving push notifications using registerPushNotification function(NotificationManager class). On iOS platform a push notification can contain a badge number for the application icon, an alert sound and an alert message to display to the user. Check what contains a notification by calling containsMessage(), containsSoundFileName() and containsIconBadgeNumber() functions. On Android platform a push notification can contain a message, a title and a ticker text: the text that flows by in the status bar when the notification first activates. More...

#include <Notification/PushNotification.h>

List of all members.

Public Member Functions

 PushNotification ()
virtual ~PushNotification ()
bool containsMessage () const
MAUtil::StringgetMessage () const
bool containsSoundFileName () const
MAUtil::StringgetSoundFileName () const
bool containsIconBadgeNumber () const
int getIconBadgeNumebr () const

Protected Member Functions

void setMessage (const MAUtil::String &alertMessage)
void setSoundFileName (const MAUtil::String &soundFileName)
void setIconBadge (const int iconBadgeNumber)

Friends

class NotificationManager

Detailed Description

Push notifications are used for displaying alerts, playing sounds and for badging application icon. A push notification is send from a server and received by an application. An application can register for receiving push notifications using registerPushNotification function(NotificationManager class). On iOS platform a push notification can contain a badge number for the application icon, an alert sound and an alert message to display to the user. Check what contains a notification by calling containsMessage(), containsSoundFileName() and containsIconBadgeNumber() functions. On Android platform a push notification can contain a message, a title and a ticker text: the text that flows by in the status bar when the notification first activates.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines