AI Integration Quick Reference
AI Integration Quick Reference
Where It Fits
CometChatIncomingCall is an overlay component that auto-detects incoming calls and renders a notification with accept/decline buttons. Place it at the app root level so it appears above all other content.

Minimal Render
.cometchat-incoming-call
Actions and Events
Callback Props
onAccept
Fires when the accept button is clicked.onDecline
Fires when the decline button is clicked.onError
Fires on internal errors.Global UI Events
CometChatCallEvents emits events subscribable from anywhere in the application.
SDK Events (Real-Time, Automatic)
The component listens to SDK call events internally for real-time incoming call detection. No manual attachment needed.Custom View Slots
View slots forCometChatIncomingCall are functions that receive the CometChat.Call object.
leadingView

titleView

itemView

Common Patterns
Disable ringtone
Custom ringtone
CSS Architecture
Key Selectors
Example: Brand-themed incoming call
