NotificationManager

From GiderosMobile
Revision as of 09:57, 23 August 2018 by Hgy29 (talk | contribs)

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