NotificationService class

Annotations

Constructors

NotificationService()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
onReceiveBroadcastNotifications Stream<List<NIMBroadcastNotification>>
收到全员广播通知
no setter
onReceiveCustomNotifications Stream<List<NIMCustomNotification>>
收到自定义通知
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendCustomNotification(String conversationId, String content, NIMSendCustomNotificationParams params) Future<NIMResult<void>>
发送自定义通知, 主要以下MsgType 发送该通知后, 接收端SDK会抛出onReceiveCustomNotifications回调 conversationId 会话 ID content 通知内容 SystemMsgTag.Attach字段 最大4096 params 通知内容 发送通知相关配置参数,可以配置如下参数,具体参见参数定义 通知相关参数配置 通知推送参数配置 通知反垃圾配置 抄送通知配置
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited