The Nokia Notifications Client API provides the following interfaces and classes (packaged as a part of the Nokia API):
Use the NotificationInfo
to retrieve application specific settings
from the Notification Enabler.
Use the NotificationMessage
to receive notification messages from
a service.
Use the NotificationPayload
to receive notification payload from
a service.
Use the NotificationSession
for communicating with the Notification
Enabler.
Use
the NotificationSessionListener
to get notified when
a message or a notification info is received, or when the notification
status changes.
Use the NotificationState
to determine the state of notification
session i.e. whether the MIDlet is not connected, connecting, or connected
to receive notifications.
Use the NotificationEnvironment
to specify the Notification Server
environment for the Notification Enabler.
Use the NotificationError
to determine errors related to the notification
state and exceptions.
Use the NotificationSessionFactory
to create a notification session
to communicate with the Notification Enabler.
Note: A MIDlet can create only one notification session at a time to communicate with the Notification Enabler, and the notification session should remain open for the lifetime of the MIDlet to receive notification callbacks.
For Nokia Notifications Client API code examples, see: Nokia Notifications - NotificationExample.