NIMSDK-AOS  9.19.0
MeiZuPushReceiver.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.mixpush;
2 
3 import android.content.BroadcastReceiver;
4 import android.content.Context;
5 import android.content.Intent;
6 
7 import com.meizu.cloud.pushsdk.handler.MzPushMessage;
8 import com.meizu.cloud.pushsdk.notification.PushNotificationBuilder;
9 import com.meizu.cloud.pushsdk.platform.message.PushSwitchStatus;
10 import com.meizu.cloud.pushsdk.platform.message.RegisterStatus;
11 import com.meizu.cloud.pushsdk.platform.message.SubAliasStatus;
12 import com.meizu.cloud.pushsdk.platform.message.SubTagsStatus;
13 import com.meizu.cloud.pushsdk.platform.message.UnRegisterStatus;
14 
15 /**
16  * 以下这些方法运行在非 UI 线程中, 与魅族 SDK 的 MzPushMessageReceiver 方法一一对应。
17  * 当开发者自身也接入魅族推送,则应将继承 MzPushMessageReceiver 改为继承 MeiZuPushReceiver,其他不变
18  */
19 
20 public class MeiZuPushReceiver extends BroadcastReceiver {
21 
22  @Override
23  public final void onReceive(Context context, Intent intent) {
24  }
25 
26  public void onRegister(Context context, String pushId) {
27  }
28 
29  public void onUnRegister(Context context, boolean success) {
30  }
31 
32  public void onPushStatus(Context context, PushSwitchStatus pushSwitchStatus) {
33  }
34 
35  public void onRegisterStatus(Context context, RegisterStatus registerStatus) {
36  }
37 
38  public void onUnRegisterStatus(Context context, UnRegisterStatus unRegisterStatus) {
39  }
40 
41  public void onSubTagsStatus(Context context, SubTagsStatus subTagsStatus) {
42  }
43 
44  public void onSubAliasStatus(Context context, SubAliasStatus subAliasStatus) {
45  }
46 
47  public void onNotificationClicked(Context context, MzPushMessage mzPushMessage) {
48  }
49 
50  public void onNotificationArrived(Context context, MzPushMessage mzPushMessage) {
51  }
52 
53  public void onNotifyMessageArrived(Context context, String message) {
54  }
55 
56  public void onNotificationDeleted(Context context, MzPushMessage mzPushMessage) {
57  }
58 
59  public void onUpdateNotificationBuilder(PushNotificationBuilder pushNotificationBuilder) {
60  }
61 
62  public void onMessage(Context context, String s) {
63 
64  }
65 
66  public void onMessage(Context context, Intent intent) {
67 
68  }
69 
70  public void onMessage(Context context, String s, String s1) {
71 
72  }
73 }
void onNotificationDeleted(Context context, MzPushMessage mzPushMessage)
void onUnRegister(Context context, boolean success)
void onMessage(Context context, String s, String s1)
以下这些方法运行在非 UI 线程中, 与魅族 SDK 的 MzPushMessageReceiver 方法一一对应。 当开发者自身也接入...
void onRegisterStatus(Context context, RegisterStatus registerStatus)
void onNotifyMessageArrived(Context context, String message)
void onPushStatus(Context context, PushSwitchStatus pushSwitchStatus)
void onUnRegisterStatus(Context context, UnRegisterStatus unRegisterStatus)
final void onReceive(Context context, Intent intent)
void onNotificationClicked(Context context, MzPushMessage mzPushMessage)
void onMessage(Context context, Intent intent)
void onNotificationArrived(Context context, MzPushMessage mzPushMessage)
void onSubTagsStatus(Context context, SubTagsStatus subTagsStatus)
void onSubAliasStatus(Context context, SubAliasStatus subAliasStatus)
void onUpdateNotificationBuilder(PushNotificationBuilder pushNotificationBuilder)
void onRegister(Context context, String pushId)