Search
Preparing search index...
The search index is not available
NIM
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
NIM
src/SystemMessageServiceInterface
SystemMessageServiceInterface
Interface SystemMessageServiceInterface
调用方式:
nim
.
systemMessage
.
sendCustomSysMsg
(
options
)
Hierarchy
SystemMessageServiceInterface
Index
Methods
send
Custom
Sys
Msg
Methods
send
Custom
Sys
Msg
send
Custom
Sys
Msg
(
options
:
SendCustomSysMsgOptions
)
:
Promise
<
void
>
发送自定义系统通知
开发者可以向其他用户或群发送自定义通知。自定义系统通知和自定义消息的区别如下:
自定义消息属于消息, 会存储在云信的消息数据库中, 需要跟其他消息一同展现给用户。
自定义系统通知属于系统通知, 用于第三方通知自己, SDK 不会解析这些通知, SDK 仅仅负责传递这些通知。
示例场景
p2p正在输入
Parameters
options:
SendCustomSysMsgOptions
Returns
Promise
<
void
>
Modules
src/
Cloud
Session
Service
Interface
src/
Cloud
Storage
Service
Interface
src/
Event
Service
Interface
src/
Friend
Service
Interface
src/
Misc
Service
Interface
src/
Msg
Extend
Service
Interface
src/
Msg
Log
Service
Interface
src/
Msg
Service
Interface
src/NIMInterface
src/
Pass
Through
Service
Interface
src/
Plugin
Service
Interface
src/
Session
Service
Interface
src/
Signaling
Service
Interface
src/
Super
Team
Service
Interface
src/
System
Message
Service
Interface
src/
Team
Service
Interface
src/
User
Service
Interface
src/types
System
Message
Service
Interface
send
Custom
Sys
Msg
调用方式: