NotificationLevel 枚举(Electron IMLib)

会话提醒级别枚举:共 3 个取值,定义来自 domain.json → enums.NotificationLevel。

基本信息​

项值
枚举NotificationLevel
取值数3
本平台常量名NotificationLevel
IDL 来源domain.json → enums.NotificationLevel
跨端一致性取值跨端一致;常量名与成员名按平台绑定
平台状态已交付

枚举常量摘要​

名称值说明
ALL0全部提醒(默认)
MENTION1仅提醒 @ 提及
MUTED2免打扰(不展示红点与角标)

使用说明​

setConversationNotificationLevel() 的 level 参数,以及 Conversation.notificationLevel 字段。

示例​

JavaScript
const value = NotificationLevel.ALL;
console.log(value);

相关链接​