|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netmera.mobile.NetmeraPushObject
public class NetmeraPushObject
NetmeraPushObject is the main Push object in Netmera. With the help of this class, you will be able to control basic push notification features.
Nested Class Summary | |
---|---|
static class |
NetmeraPushObject.NotificationType
Available notification types of the incoming or created push notification object. |
Constructor Summary | |
---|---|
NetmeraPushObject()
|
Method Summary | |
---|---|
java.util.Date |
getCreateDate()
Get create date of the incoming push notification. |
java.util.Map<java.lang.String,java.lang.String> |
getCustomData()
Get custom pay load data which is sent with the notification. |
java.lang.String |
getMessage()
Get the plain message of the push notification |
java.lang.String |
getNotificationId()
Get the notification ID which is used to describe a notification in Netmera. |
java.lang.String |
getPushType()
Get push type of the incoming notification. |
java.lang.String |
getTitle()
Get the push title of the incoming push notification. |
boolean |
isBackgroundPush()
|
NetmeraPushObject |
putCustomData(java.lang.String key,
java.lang.String value)
Put custom data to your push notification. |
void |
setBackgroundPush(boolean isBackgroundPush)
|
NetmeraPushObject |
setCustomData(java.util.Map<java.lang.String,java.lang.String> customData)
Set custom data when sending a push notification. |
NetmeraPushObject |
setMessage(java.lang.String message)
Set the plain message of the push notification. |
NetmeraPushObject |
setTitle(java.lang.String title)
Set a title to your push when you send a notification from device. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NetmeraPushObject()
Method Detail |
---|
public boolean isBackgroundPush()
public void setBackgroundPush(boolean isBackgroundPush)
public java.lang.String getMessage()
public NetmeraPushObject setMessage(java.lang.String message)
message
- which will appear in the notification bar.public java.util.Date getCreateDate()
public java.util.Map<java.lang.String,java.lang.String> getCustomData()
public NetmeraPushObject setCustomData(java.util.Map<java.lang.String,java.lang.String> customData)
customData
- key value pairs to send with the notification.public NetmeraPushObject putCustomData(java.lang.String key, java.lang.String value)
key
- custom data keyvalue
- custom data valuepublic java.lang.String getNotificationId()
public java.lang.String getPushType()
NetmeraPushObject.NotificationType
class.
public java.lang.String getTitle()
public NetmeraPushObject setTitle(java.lang.String title)
title
- push title
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |