MoSync 3.3
Notification::LocalNotification Class Reference

Local notifications are used for displaying alerts, playing sounds and for badging application icon. The operating system is responsible for delivering the notification at the proper time; the application does not have to be running for this to happen. When you create a local notification, you must specify when the system should deliver the notification(see fire date property). If you don't specify a fire date, the default System time will be set. More...

#include <Notification/LocalNotification.h>

List of all members.

Public Member Functions

 LocalNotification ()
virtual ~LocalNotification ()
MAHandle getHandle () const
int setProperty (const MAUtil::String &property, const MAUtil::String &value)
int setPropertyInt (const MAUtil::String &property, const int value)
int getPropertyInt (const MAUtil::String &property, int &resultCode) const
int getPropertyInt (const MAUtil::String &property) const
MAUtil::String getPropertyString (const MAUtil::String &property, int &resultCode) const
MAUtil::String getPropertyString (const MAUtil::String &property) const
int setBadgeNumber (const int badgeNumber)
int getBadgeNumber () const
int setContentBody (const MAUtil::String &text)
MAUtil::String getContentBody () const
int setContentTitle (const MAUtil::String text)
MAUtil::String getContentTitle () const
int setTickerText (const MAUtil::String text)
MAUtil::String getTickerText () const
int setFlag (const NotificationFlag flag)
int setDisplayFlag (const NotificationDisplayFlag displayFlag)
int setAlertAction (const MAUtil::String &alertAction)
MAUtil::String getAlertAction () const
int setPlaySound (bool playSound)
bool isPlayingSound () const
int setSound (const MAUtil::String path)
int setVibrate (bool vibrate)
bool isVibrateEnabled () const
int setVibrateDuration (const int duration)
int setFlashLights (bool flashing)
int setFlashLightsPattern (const NotificationFlashLights lightPattern)
int setFireDate (struct tm *time)
struct tm getFireDate () const

Detailed Description

Local notifications are used for displaying alerts, playing sounds and for badging application icon. The operating system is responsible for delivering the notification at the proper time; the application does not have to be running for this to happen. When you create a local notification, you must specify when the system should deliver the notification(see fire date property). If you don't specify a fire date, the default System time will be set.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines