public class MessageV2Handler extends MessageV3Handler
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| 构造器和说明 |
|---|
MessageV2Handler(android.content.Context context,
AbstractAppLogicListener abstractAppLogicListener) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected MessageV3 |
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 |
onAfterEvent(MessageV3 message) |
protected void |
onBeforeEvent(MessageV3 message)
record receive push event
|
protected void |
unsafeSend(MessageV3 message,
PushNotification pushNotification) |
canSendMessage, onCreateNotification, scheduleNotificationStatus, scheduleShowNotification, securityCheckappLogicListener, canReceiveMessage, clearNotifyOption, context, getDeskTopNotificationPkg, getDeviceId, getIntentMethod, getPushServiceDefaultPackageName, getPushTimestamp, getSeqId, getTaskId, isNotificationJson, securityCheck0, sendArrivedMessage, sendMessagepublic MessageV2Handler(android.content.Context context,
AbstractAppLogicListener abstractAppLogicListener)
public boolean messageMatch(android.content.Intent intent)
MessageHandlermessageMatch 在接口中 MessageHandlermessageMatch 在类中 MessageV3Handlerintent - method 每个Intent都有一个method属性
actionpublic int getProcessorType()
getProcessorType 在接口中 MessageHandlergetProcessorType 在类中 MessageV3Handlerprotected MessageV3 getMessage(android.content.Intent intent)
getMessage 在类中 MessageV3Handlerprotected void unsafeSend(MessageV3 message, PushNotification pushNotification)
unsafeSend 在类中 MessageV3Handlerprotected void onBeforeEvent(MessageV3 message)
AbstractMessageHandleronBeforeEvent 在类中 MessageV3Handlerprotected void onAfterEvent(MessageV3 message)
onAfterEvent 在类中 MessageV3Handler