AI Integration Quick Reference
AI Integration Quick Reference
Where It Fits
CometChatIncomingCall is a Component that serves as a visual representation when the user receives an incoming call, such as a voice call or video call, providing options to answer or decline the call.

Minimal Render
Actions and Events
Callback Props
onAccept
Fires when the accept button is pressed.onDecline
Fires when the decline button is pressed.onError
Fires on internal errors (network failure, auth issue, SDK exception).Global UI Events
CometChatUIEventHandler emits events subscribable from anywhere in the application. Add listeners and remove them on cleanup.
When to use: sync external UI with call state changes. For example, update a call status indicator, show notifications, or log call events.
Custom View Slots
Each slot replaces a section of the default UI. Slots that accept a call parameter receive the call object for customization.ItemView
Custom view for the entire incoming call card.LeadingView
Custom view for the avatar / left section.SubtitleView
Custom view for the call type / status text.Styling
Using Style you can customize the look and feel of the component in your app. Pass a styling object as a prop to theCometChatIncomingCall component.

Visibility Props
Next Steps
Outgoing Call
Display and manage outgoing calls
Call Buttons
Add voice and video call buttons to your UI
Call Features
Overview of all calling features
Component Styling
Customize the appearance of UI Kit components