NIMSDK-AOS  10.5.0
MiPushMessageReceiver.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.xiaomi.mipush.sdk.MiPushCommandMessage;
8 import com.xiaomi.mipush.sdk.MiPushMessage;
9 
15 public class MiPushMessageReceiver extends BroadcastReceiver {
16 
17  @Override
18  public final void onReceive(Context context, Intent intent) {
19  }
20 
21  public void onReceivePassThroughMessage(Context context, MiPushMessage message) {
22  }
23 
24  public void onNotificationMessageClicked(Context context, MiPushMessage message) {
25  }
26 
27  public void onNotificationMessageArrived(Context context, MiPushMessage message) {
28  }
29 
30  public void onReceiveRegisterResult(Context context, MiPushCommandMessage message) {
31  }
32 
33  public void onCommandResult(Context context, MiPushCommandMessage message) {
34  }
35 
36  public void onRequirePermissions(Context context, String[] strings) {
37  }
38 }
void onNotificationMessageArrived(Context context, MiPushMessage message)
void onNotificationMessageClicked(Context context, MiPushMessage message)
void onRequirePermissions(Context context, String[] strings)
void onReceivePassThroughMessage(Context context, MiPushMessage message)
void onReceiveRegisterResult(Context context, MiPushCommandMessage message)
final void onReceive(Context context, Intent intent)
void onCommandResult(Context context, MiPushCommandMessage message)
以下这些方法运行在非 UI 线程中, 与小米SDK PushMessageReceiver 方法一一对应。 开发者如果自身也需要接入...