用于控制会议中通知行为的配置类。 管理参与者加入/离开事件、聊天消息和投票的声音及吐司(toast)通知。
| 属性 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
participantJoined |
RtkNotification |
❌ | RtkNotification() |
参与者加入事件的通知设置 |
participantLeft |
RtkNotification |
❌ | RtkNotification() |
参与者离开事件的通知设置 |
newChatArrived |
RtkNotification |
❌ | RtkNotification() |
新聊天消息的通知设置 |
newPollArrived |
RtkNotification |
❌ | RtkNotification() |
新投票事件的通知设置 |
每个 RtkNotification 实例包含以下属性:
| 属性 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
playSound |
Bool |
❌ | true |
是否播放通知声音 |
showToast |
Bool |
❌ | true |
是否显示吐司(toast)通知 |
import RealtimeKitUI
let rtkUI = RealtimeKitUI(meetingInfo: meetingInfo)
// Access the default notification config
let notificationConfig = rtkUI.notificationimport RealtimeKitUI
let rtkUI = RealtimeKitUI(meetingInfo: meetingInfo)
// Disable sound for participant join events
rtkUI.notification.participantJoined.playSound = false
// Disable toast for chat messages
rtkUI.notification.newChatArrived.showToast = false