NotificationLevel 枚举(Electron IMLib)
会话提醒级别枚举:共 3 个取值,定义来自 domain.json → enums.NotificationLevel。
基本信息
| 项 | 值 |
|---|---|
| 枚举 | NotificationLevel |
| 取值数 | 3 |
| 本平台常量名 | NotificationLevel |
| IDL 来源 | domain.json → enums.NotificationLevel |
| 跨端一致性 | 取值跨端一致;常量名与成员名按平台绑定 |
| 平台状态 | 已交付 |
枚举常量摘要
| 名称 | 值 | 说明 |
|---|---|---|
ALL | 0 | 全部提醒(默认) |
MENTION | 1 | 仅提醒 @ 提及 |
MUTED | 2 | 免打扰(不展示红点与角标) |
使用说明
setConversationNotificationLevel() 的 level 参数,以及 Conversation.notificationLevel 字段。
示例
JavaScript
const value = NotificationLevel.ALL;
console.log(value);