public class PushSwitchStatusHandler extends AbstractMessageHandler<PushSwitchStatus>
MESSAGE_TYPE_NOTIFICATION_ARRIVED, MESSAGE_TYPE_NOTIFICATION_CLICK, MESSAGE_TYPE_NOTIFICATION_DELETE, MESSAGE_TYPE_NOTIFICATION_STATE, MESSAGE_TYPE_NOTIFICATION_WITHDRAW, MESSAGE_TYPE_PUSH_REGISTER_STATUS, MESSAGE_TYPE_PUSH_SERVICE_V2, MESSAGE_TYPE_PUSH_SERVICE_V3, MESSAGE_TYPE_PUSH_SUBALIAS_STATUS, MESSAGE_TYPE_PUSH_SUBTAGS_STATUS, MESSAGE_TYPE_PUSH_SWITCH_STATUS, MESSAGE_TYPE_PUSH_UNREGISTER_STATUS, MESSAGE_TYPE_RECEIVE_NOTIFY_MESSAGE, MESSAGE_TYPE_REGISTER, MESSAGE_TYPE_SCHEDULE_NOTIFICATION, MESSAGE_TYPE_THROUGH, MESSAGE_TYPE_UNREGISTER, MESSAGE_TYPE_UPLOAD_FILE_LOG, SCHEDULE_OFF, SCHEDULE_ON_DELAY, SCHEDULE_ON_EXPIRE, SCHEDULE_ON_TIME, TAG| 构造器和说明 |
|---|
PushSwitchStatusHandler(android.content.Context context,
AbstractAppLogicListener abstractAppLogicListener) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected PushSwitchStatus |
getMessage(android.content.Intent intent) |
int |
getProcessorType() |
boolean |
messageMatch(android.content.Intent intent)
匹配消息格式
* 处理消息
1.应用透传消息(V2,V3,Cloud)
2.push平台消息Json(V3版本消息,Cloud通知栏json)
3.push平台Object(V2版本消息)
4.注册消息
5.点击通知栏消息
6.反注册消息
|
protected void |
unsafeSend(PushSwitchStatus message,
PushNotification pushNotification) |
appLogicListener, canReceiveMessage, canSendMessage, clearNotifyOption, context, getDeskTopNotificationPkg, getDeviceId, getIntentMethod, getPushServiceDefaultPackageName, getPushTimestamp, getSeqId, getTaskId, isNotificationJson, onAfterEvent, onBeforeEvent, onCreateNotification, scheduleNotificationStatus, scheduleShowNotification, securityCheck, securityCheck0, sendArrivedMessage, sendMessagepublic PushSwitchStatusHandler(android.content.Context context,
AbstractAppLogicListener abstractAppLogicListener)
protected PushSwitchStatus getMessage(android.content.Intent intent)
getMessage 在类中 AbstractMessageHandler<PushSwitchStatus>protected void unsafeSend(PushSwitchStatus message, PushNotification pushNotification)
unsafeSend 在类中 AbstractMessageHandler<PushSwitchStatus>public boolean messageMatch(android.content.Intent intent)
MessageHandlerintent - method 每个Intent都有一个method属性
actionpublic int getProcessorType()