public class NotifyOption
extends java.lang.Object
implements android.os.Parcelable
| 限定符和类型 | 字段和说明 |
|---|---|
static android.os.Parcelable.Creator<NotifyOption> |
CREATOR |
static int |
NO_VALID_NOTIFY_ID |
static java.lang.String |
NOTIFY_OPTION |
| 限定符 | 构造器和说明 |
|---|---|
|
NotifyOption() |
protected |
NotifyOption(android.os.Parcel in) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
describeContents() |
int |
getNotifyId() |
static int |
getNotifyId(MessageV3 messageV3) |
java.lang.String |
getNotifyKey() |
static NotifyOption |
getNotifyOptionSetting(MessageV3 messageV3)
获取通知栏Notify配置,json格式如下
"no":{
"ni":0, // 一个随机int型,全局唯一,由服务端统一生成
"nk":"notify_key" // 分组合并推送的key,凡是带有此key的通知栏消息只会显示最后到达的一条
}
|
static NotifyOption |
parse(org.json.JSONObject notifyTypeObj) |
static NotifyOption |
parse(java.lang.String setting) |
void |
setNotifyId(int notifyId) |
void |
setNotifyKey(java.lang.String notifyKey) |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final java.lang.String NOTIFY_OPTION
public static final int NO_VALID_NOTIFY_ID
public static final android.os.Parcelable.Creator<NotifyOption> CREATOR
public NotifyOption()
protected NotifyOption(android.os.Parcel in)
public int describeContents()
describeContents 在接口中 android.os.Parcelablepublic int getNotifyId()
public void setNotifyId(int notifyId)
public java.lang.String getNotifyKey()
public void setNotifyKey(java.lang.String notifyKey)
public java.lang.String toString()
toString 在类中 java.lang.Objectpublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel 在接口中 android.os.Parcelablepublic static NotifyOption parse(java.lang.String setting)
public static NotifyOption parse(org.json.JSONObject notifyTypeObj)
public static NotifyOption getNotifyOptionSetting(MessageV3 messageV3)
public static int getNotifyId(MessageV3 messageV3)