Skip to content

RtkNotificationConfig

Last updated View as MarkdownAgent setup

Configuration class for controlling notification behavior in meetings. Manages sound and toast notifications for participant join/leave events, chat messages, and polls.

Properties

Property Type Required Default Description
participantJoined RtkNotification RtkNotification() Notification settings for participant join events
participantLeft RtkNotification RtkNotification() Notification settings for participant leave events
newChatArrived RtkNotification RtkNotification() Notification settings for new chat messages
newPollArrived RtkNotification RtkNotification() Notification settings for new poll events

RtkNotification properties

Each RtkNotification instance contains the following properties:

Property Type Required Default Description
playSound Bool true Whether to play a notification sound
showToast Bool true Whether to show a toast notification

Usage Examples

Basic Usage

import RealtimeKitUI

let rtkUI = RealtimeKitUI(meetingInfo: meetingInfo)
// Access the default notification config
let notificationConfig = rtkUI.notification

Customize notifications

import 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

Was this helpful?