Difference between revisions of "NotificationManager"

From GiderosMobile
(Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2011.6<br/> === Description === NotificationManager is the class that allows you to manage scheduled...")
 
Line 7: Line 7:
 
With NotificationManager you can retrieve information about all scheduled local notifications, all received local notifications and all received push notifications. As well as clear all type of notifications and cancel scheduled notifications.
 
With NotificationManager you can retrieve information about all scheduled local notifications, all received local notifications and all received push notifications. As well as clear all type of notifications and cancel scheduled notifications.
  
NotificationManager instance also receives events about notification being clicked and app opened through that specific notification. As well as registration for push notification event or registration error.{|-
+
NotificationManager instance also receives events about notification being clicked and app opened through that specific notification. As well as registration for push notification event or registration error.
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
{|-
 
| style="width: 50%;"|
 
| style="width: 50%;"|
 
=== Methods ===
 
=== Methods ===
 +
[[NotificationManager.getSharedInstance]] - get NotificationManager instance<br/>
 +
[[NotificationManager:cancelAllNotifications]] - cancel scheduled notification<br/>
 +
[[NotificationManager:cancelNotification]] - cancel specified notification<br/>
 +
[[NotificationManager:clearLocalNotifications]] - clear local notifications<br/>
 +
[[NotificationManager:clearPushNotifications]] - clear push notifications<br/>
 +
[[NotificationManager:getLocalNotifications]] - get local notifications<br/>
 +
[[NotificationManager:getPushNotifications]] - get push notification<br/>
 +
[[NotificationManager:getScheduledNotifications]] - get schedule notifications<br/>
 +
[[NotificationManager:registerForPushNotifications]] - register for push notifications<br/>
 +
[[NotificationManager:unregisterForPushNotifications]] - unregister from notifications<br/>
 
| style="width: 50%;"|
 
| style="width: 50%;"|
 
=== Events ===
 
=== Events ===
 +
[[Event.LOCAL_NOTIFICATION]]
 +
[[Event.PUSH_NOTIFICATION]]
 +
[[Event.PUSH_REGISTRATION]]
 +
[[Event.PUSH_REGISTRATION_ERROR]]
 
=== Constants ===
 
=== Constants ===
 
|}
 
|}

Revision as of 08:57, 23 August 2018

Supported platforms:
Available since: Gideros 2011.6

Description

NotificationManager is the class that allows you to manage scheduled and received notifications. This is a class with a single instance which can be retrieved using getSharedInstance() and can not have any new instances.

With NotificationManager you can retrieve information about all scheduled local notifications, all received local notifications and all received push notifications. As well as clear all type of notifications and cancel scheduled notifications.

NotificationManager instance also receives events about notification being clicked and app opened through that specific notification. As well as registration for push notification event or registration error.










Methods

NotificationManager.getSharedInstance - get NotificationManager instance
NotificationManager:cancelAllNotifications - cancel scheduled notification
NotificationManager:cancelNotification - cancel specified notification
NotificationManager:clearLocalNotifications - clear local notifications
NotificationManager:clearPushNotifications - clear push notifications
NotificationManager:getLocalNotifications - get local notifications
NotificationManager:getPushNotifications - get push notification
NotificationManager:getScheduledNotifications - get schedule notifications
NotificationManager:registerForPushNotifications - register for push notifications
NotificationManager:unregisterForPushNotifications - unregister from notifications

Events

Event.LOCAL_NOTIFICATION Event.PUSH_NOTIFICATION Event.PUSH_REGISTRATION Event.PUSH_REGISTRATION_ERROR

Constants