Skip to main content
CometChatOutgoingCall shows the outgoing call screen from the moment a call is placed until the callee joins, declines, is busy or doesn’t answer. It displays the recipient’s avatar and name, the call status (“Calling…”, then “Ringing…” once the callee’s phone is reached) and an end call button, and opens the call screen when the callee joins. On Android and iOS, the screen follows the Calls SDK session that the call prepared, without joining it: the caller joins only once the callee has joined. The Chat SDK is not involved.

Where It Fits

CometChatOutgoingCall is typically launched automatically by CometChatCallButtons and the call back button of CometChatCallLogs when a call is placed. It can also be launched manually for custom call flows.

Call states

A call nobody answers ends after 45 seconds: the callee’s cometchat_voip stops ringing, and this screen ends the call as unanswered. Tapping End cancels the call (cancelled): the callee’s ring stops and a missed call is shown there. After End, an answer that arrives late is not joined.

Quick Start

Automatic (via CallButtons)

When using CometChatCallButtons, the outgoing call screen is launched automatically when the user taps a call button. No manual integration needed.

Manual Launch

For custom call flows:
Prerequisites: CometChat SDK initialized, enableCalls = true set in UIKitSettings. See Call Features for setup.

Actions and Events

Callback Methods

onCancelled

Fires when the user taps End. Default: cancels the call with the cancelled status, closes the screen and emits ccCallRejected. Provide the callback to handle the cancel yourself.

onError

Fires on internal errors.

Global Events

The component emits events via CometChatCallEvents: On Android and iOS, no event fires when the callee answers or declines: the screen opens the call screen or closes. A call that was answered and then ends fires ccCallEnded.

Functionality

Example — custom decline icon and disabled sound:
Image Image

Custom View Slots

Avatar View

Replace the recipient’s avatar.

Title View

Replace the recipient’s name / call status text.

Subtitle View

Replace the subtitle (e.g., “Calling…”).

Cancelled View

Replace the cancel/end call button.

Style

Style Properties


Key V6 Differences


Next Steps

Calling Integration

Ring incoming calls with cometchat_voip

Call Buttons

Add voice and video call buttons

Call Features

Complete calling setup

Component Styling

Detailed styling reference