AI Integration Quick Reference
AI Integration Quick Reference
CometChatSoundManager plays the Kit’s incoming-message sound. It lives in CometChatCore
and is shared by both toolkits.
It plays through AudioServices, not AVAudioPlayer: a short UI sound needs no
AVAudioSession, so the Kit never changes your app’s audio session, ducks the user’s music or
interrupts a call.
Sound Events
The iOS v6 Kit plays only the incoming-message sound. The UIKit outgoing-call screen has a
set(customSoundForCalls:) setter, but it plays nothing.Usage
The API is the same in both toolkits, becauseCometChatSoundManager is in CometChatCore.
- SwiftUI
- UIKit
AudioServices can play — .caf, .aif or .wav, under 30 seconds.
Disable or Replace Sounds on Components
disableSoundForMessages wins over customSoundForMessages.
- SwiftUI
- UIKit
Choose which messages sound
The message list asks its policy before playing. Returnfalse to stay silent for a message:
- SwiftUI
- UIKit
API Reference
Next Steps
Localize
Languages and date formats.
Customization Overview
Every way to change the Kit.