cn.jpush.api.push.model.notification
类 Notification

java.lang.Object
  继承者 cn.jpush.api.push.model.notification.Notification
所有已实现的接口:
PushModel

public class Notification
extends Object
implements PushModel


嵌套类摘要
static class Notification.Builder
           
 
方法摘要
static Notification alert(String alert)
          Quick set all platform alert.
static Notification android(String alert, String title, Map<String,String> extras)
          shortcut
static Notification ios_auto_badge()
          shortcut
static Notification ios_incr_badge(int badge)
          shortcut
static Notification ios_set_badge(int badge)
          shortcut
static Notification ios(String alert, Map<String,String> extras)
          shortcut
static Notification.Builder newBuilder()
           
 com.google.gson.JsonElement toJSON()
           
static Notification winphone(String alert, Map<String,String> extras)
          shortcut
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

newBuilder

public static Notification.Builder newBuilder()

alert

public static Notification alert(String alert)
Quick set all platform alert. Platform notification can override this alert.

参数:
alert - Notification alert
返回:
first level notification object

android

public static Notification android(String alert,
                                   String title,
                                   Map<String,String> extras)
shortcut


ios

public static Notification ios(String alert,
                               Map<String,String> extras)
shortcut


ios_auto_badge

public static Notification ios_auto_badge()
shortcut


ios_set_badge

public static Notification ios_set_badge(int badge)
shortcut


ios_incr_badge

public static Notification ios_incr_badge(int badge)
shortcut


winphone

public static Notification winphone(String alert,
                                    Map<String,String> extras)
shortcut


toJSON

public com.google.gson.JsonElement toJSON()
指定者:
接口 PushModel 中的 toJSON


Copyright © 2014. All Rights Reserved.