Difference between revisions of "NotificationManager"
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 === | ||
Line 41: | Line 22: | ||
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Events === | === Events === | ||
− | [[Event.LOCAL_NOTIFICATION]] | + | [[Event.LOCAL_NOTIFICATION]]<br/> |
− | [[Event.PUSH_NOTIFICATION]] | + | [[Event.PUSH_NOTIFICATION]]<br/> |
− | [[Event.PUSH_REGISTRATION]] | + | [[Event.PUSH_REGISTRATION]]<br/> |
− | [[Event.PUSH_REGISTRATION_ERROR]] | + | [[Event.PUSH_REGISTRATION_ERROR]]<br/> |
=== Constants === | === Constants === | ||
|} | |} |
Revision as of 09:12, 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.{|- | style="width: 50%;"|
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
| style="width: 50%;"|
Events
Event.LOCAL_NOTIFICATION
Event.PUSH_NOTIFICATION
Event.PUSH_REGISTRATION
Event.PUSH_REGISTRATION_ERROR
Constants
|}