Skip to main content
CometChatOutgoingCall is the screen a 1:1 call shows while it rings: the callee’s name, a status line — “Calling…”, then “Ringing…” — their avatar, and a red end button. When the callee answers, the same screen becomes the call; when the call ends unanswered, it says why and comes down.
CometChatOutgoingCall showing the callee's avatar, name, a ringing status and an end-call button

Where It Fits

You rarely build it yourself. A tap on the call buttons or on a call log’s call-back button places the call and shows this screen. See Call Features.
The screen is shown through .cometChatCallPresenter() when your app installs it at its root, otherwise from the component that placed the call.
Group calls do not ring: a group tap joins a meeting on CometChatOngoingCall.

Quick Start

When you take onCallInitiated yourself, present the screen for the call.
The ring timer, the cancel and the answer belong to the Kit’s CallCoordinator, so the screen picks up the call the buttons placed rather than placing another.When you present the screen yourself, withdraw the call from your own dismissal, as onDismiss does above: CallCoordinator.shared.outgoingDismissed() withdraws a call that still rings and does nothing once it is over. The screen does not withdraw a call just because it went off screen — a push over it or a tab switch leaves the call ringing.

What Happens

The end button works only while the callee’s device rings.
The end button works once per call: the first tap disables it, whatever onEndCallClick does. The screen stays on while the call is placed and rings; in the call, the Calls SDK keeps it on.
The Kit plays no ring-back tone.

Actions and Events

Callback Methods

onEndCallClick replaces the cancel entirely — the call keeps ringing until you end it. With onCallAccepted set you take the answered call: the Kit’s join keeps running, and a CometChatOngoingCall for the call’s session picks it up.

Global Events

The Kit emits outgoingCall, callAccepted and callRejected on CometChatEvents — .onCometChatCallEvents { … } hears them.

Functionality

CometChatOutgoingCall shows a placed call. It does not place one.

Custom View Slots

Each slot receives the placed Call.

Advanced Methods

Store Access

OutgoingCallStore is the ringing call: its state (initiating, ringing, joined, ended), statusText, callee and kind. A seeded store shows a fixed state, for a preview:

Subclassing

CometChatOutgoingCall is a View struct. Customise it with its slots and style.

Style

CometChatOutgoingCallStyle is sparse: set only what you change.

Next Steps

Call Buttons

Place a call that opens this screen

Ongoing Call

The call this screen becomes

Call Logs

Call back from the call history

Call Features

How calls ring and are presented