NIMSDK-AOS  10.9.90
V2NIMNotificationService.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.v2.notification;
2 
6 
7 public interface V2NIMNotificationService {
8 
9  /**
10  * 发送自定义通知, 主要以下MsgType
11  * 发送该通知后, 接收端SDK会抛出onReceiveCustomNotification回调
12  * CUSTOM_P2P_MSG(100), // p2p透传通知
13  * CUSTOM_TEAM_MSG(101), // 群透传通知
14  * YSF_CUSTOM_P2P_MSG(102), // 云商服的点对点自定义系统通知
15  * CUSTOM_SUPERTEAM_MSG(103), // 超大群透传通知
16  *
17  * @param conversationId 会话 ID
18  * @param content 通知内容 SystemMsgTag.Attach字段 最大4096
19  * @param params 通知内容 发送通知相关配置参数,可以配置如下参数,具体参见参数定义
20  * 通知相关参数配置
21  * 通知推送参数配置
22  * 通知反垃圾配置
23  * 抄送通知配置
24  * @param success 发送消息成功回调
25  * @param failure 发送消息失败回调
26  */
27  void sendCustomNotification(String conversationId, String content, V2NIMSendCustomNotificationParams params, V2NIMSuccessCallback<Void> success, V2NIMFailureCallback failure);
28 
29 
30  /**
31  * 注册通知监听器
32  *
33  * @param listener 监听回调
34  */
36 
37 
38  /**
39  * 反注册通知状态监听器
40  *
41  * @param listener 监听回调
42  */
44 }
void sendCustomNotification(String conversationId, String content, V2NIMSendCustomNotificationParams params, V2NIMSuccessCallback< Void > success, V2NIMFailureCallback failure)
发送自定义通知, 主要以下MsgType 发送该通知后, 接收端SDK会抛出onReceiveCustomNotification回调 CUSTOM...
void removeNotificationListener(V2NIMNotificationListener listener)
反注册通知状态监听器
void addNotificationListener(V2NIMNotificationListener listener)
注册通知监听器