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.

Where It Fits
- SwiftUI
- UIKit
The screen is shown through
.cometChatCallPresenter() when your app installs it at its root,
otherwise from the component that placed the call.CometChatOngoingCall.
Quick Start
When you takeonCallInitiated yourself, present the screen for the call.
- SwiftUI
- UIKit
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.
- SwiftUI
- UIKit
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.Actions and Events
Callback Methods
- SwiftUI
- UIKit
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
- SwiftUI
- UIKit
The Kit emits
outgoingCall, callAccepted and callRejected on
CometChatEvents — .onCometChatCallEvents { … } hears them.Functionality
- SwiftUI
- UIKit
CometChatOutgoingCall shows a placed call. It does not place one.Custom View Slots
Each slot receives the placedCall.
- SwiftUI
- UIKit
Advanced Methods
Store Access
- SwiftUI
- UIKit
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
- SwiftUI
- UIKit
CometChatOutgoingCall is a View struct. Customise it with its slots and style.Style
- SwiftUI
- UIKit
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