com.nokia.notifications
Interface NotificationMessage
public interface NotificationMessage
NotificationMessage
is notification received from a service.
NotificationMessage
is received in
NotificationSessionListener.messageReceived(NotificationMessage)
.
getFrom
java.lang.String getFrom()
- Returns sender's JID.
- Returns:
- the Service ID which sends the notification.
getPayload
NotificationPayload getPayload()
- Returns
NotificationPayload
object.
- Returns:
- payload object, or
null
if the notification did not
contain a payload.
getSenderInformation
java.lang.String getSenderInformation()
- Returns sender's Application ID.
- Returns:
- Application ID of the Service.
getTimestamp
java.util.Date getTimestamp()
- Returns message publication time. Publication time is the time when the
Notification Server received the message.
- Returns:
- timestamp of the message
getTitle
java.lang.String getTitle()
- Returns the message title.
- Returns:
- the message title, or
null
if no title is defined.
getNotificationItemId
java.lang.String getNotificationItemId()
- Returns the item ID of the message. This value is also passed as launch
parameter when starting NNA MIDlet and matches with the last notification which
was received just before the MIDlet was launched.
- Returns:
- the Item Id.
getUnreadMessageCount
int getUnreadMessageCount()
- Returns the count of messages still to be received.
When midlet registers for a service all notifications for that
service will be delivered to the midlet one message at a time.
By using this function midlet can get information how many
undelivered messages there are left in NNA stack for that service.
Copyright © 2012 Nokia Corporation. All rights reserved.
Nokia is registered trademark of Nokia Corporation. Java and all Java-based marks are trademarks or registered trademarks of Oracle Corporation. Other product and company names mentioned herein may be trademarks or trade names of their respective owners. This document is confidential information of Nokia Corporation.
Disclaimer
The information in this document is provided "as is," with no warranties whatsoever, including any warranty of merchantability, fitness for any particular purpose, or any warranty otherwise arising out of any proposal, specification, or sample. Furthermore, information provided in this document is preliminary, and may be changed substantially prior to final release.
Nokia Corporation disclaims all liability, including liability for infringement of any proprietary rights, relating to this document and implementation of any information presented in this document.
Nokia Corporation retains the right to make changes to this document at any time, without notice.
License
Subject to above disclaimer, a license is hereby granted to use this documentation solely under existing Limited License Agreement and non-disclosure agreement between the companies for the agreed application development for Series 40 Nokia phones. No other licenses e.g. to any intellectual property rights are granted herein. Any use of the screen shots of this documentation, including any icons thereof, is subject to Nokia's prior written approval.