sendCustomNotification method
- String conversationId,
- String content,
- NIMSendCustomNotificationParams params
发送自定义通知, 主要以下MsgType
发送该通知后, 接收端SDK会抛出onReceiveCustomNotifications回调
conversationId
会话 ID
content
通知内容 SystemMsgTag.Attach字段 最大4096
params
通知内容 发送通知相关配置参数,可以配置如下参数,具体参见参数定义
通知相关参数配置
通知推送参数配置
通知反垃圾配置
抄送通知配置
Implementation
Future<NIMResult<void>> sendCustomNotification(String conversationId,
String content, NIMSendCustomNotificationParams params) {
return _platform.sendCustomNotification(conversationId, content, params);
}