Skip to main content
CometChatIncomingCall renders when the logged-in user receives an incoming voice or video call, displaying the caller’s information and providing accept/reject controls.

Where It Fits

CometChatIncomingCall is a call-handling component. It renders the incoming call screen and transitions to the ongoing call screen when the user accepts. Wire it to CometChatOngoingCallActivity after the user accepts the call.
activity_call.xml

Quick Start

Add to your layout XML:
Set the Call object — this is required:
Prerequisites: CometChat SDK initialized with CometChatUIKit.init(), a user logged in, and the UI Kit dependency added.

Actions and Events

Callback Methods

onAcceptClick

Fires when the user taps the accept button.

onRejectClick

Fires when the user taps the reject button.

onError

Fires on internal errors (network failure, call failure, SDK exception).

Global UI Events (CometChatCallEvents)

SDK Events (Real-Time, Automatic)


Functionality


Custom View Slots

Leading View

Replace the avatar / left section.

Title View

Replace the caller name / title text.

Trailing View

Replace the right section of the incoming call card.

Item View

Replace the entire incoming call card.

Style

Define a custom style in themes.xml:
themes.xml
See Component Styling for the full reference.

Next Steps

Outgoing Call

Outgoing call screen with end-call button

Call Buttons

Voice and video call buttons

Call Logs

View call history

Conversations

Browse recent conversations