Skip to main content
CometChatOutgoingCall renders the outgoing call screen and transitions to the ongoing call screen when the receiver accepts. It displays the recipient’s avatar, name, call status, and an end-call button.

Where It Fits

CometChatOutgoingCall is a call-initiation component. Wire it to CometChatCallEvents to handle call-accepted and call-rejected transitions.
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

onEndCallClick

Fires when the end-call button is tapped. Default: cancels the outgoing call via the SDK.

onError

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

Global UI Events (CometChatCallEvents)

SDK Events (Real-Time, Automatic)


Functionality


Custom View Slots

Title View

Replace the name / title text area.

Avatar View

Replace the avatar / profile picture area.

Cancel Button View

Replace the end-call button.

Style

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

Next Steps

Incoming Call

Incoming call notification with accept/reject

Call Buttons

Voice and video call buttons

Call Logs

View call history

Conversations

Browse recent conversations