CometChatOngoingCall is the call itself: the CometChat Calls SDK’s own call view — video
tiles, mute, camera and end controls — with a spinner over it while it connects, and “Call
failed” if the join fails. It shows a 1:1 call once it is answered, a group meeting, or a call
answered from CallKit.

Where It Fits
- SwiftUI
- UIKit
The screen is shown through
.cometChatCallPresenter() when your app installs it, otherwise
from the component that started the call.Quick Start
For a call your app placed or answered itself, show its session.- SwiftUI
- UIKit
store you pass; else the Kit’s
current call for sessionId; else it joins sessionId through the Kit’s CallCoordinator,
so your push integration hears about the join like any other.Joining a Meeting
A group meeting is joined directly, with.directCalling. It ends only from its own leave
button, not when one member leaves.
- SwiftUI
- UIKit
callSettingsBuilder takes the Calls SDK’s SessionSettingsBuilder. It applies only to a
meeting this screen joins itself; any other call’s settings were fixed when it was placed, so
the screen reports it once through onError instead.
Actions and Events
Callback Methods
- SwiftUI
- UIKit
onCallEnded has the signature () -> Void; onError is (CometChatError) -> Void.Global Events
Leaving the screen does not end the call.- SwiftUI
- UIKit
The Kit emits
callEnded on CometChatEvents when the call ends.Functionality
- SwiftUI
- UIKit
Advanced Methods
Store Access
- SwiftUI
- UIKit
OngoingCallStore is the call: its call (an ActiveCall — session, kind, title), its
state (connecting, joined, ended, failed) and leave(). CallCoordinator.shared.activeCall
is the call that is up now, if any.Subclassing
- SwiftUI
- UIKit
CometChatOngoingCall is a View struct. Customise it with its style.Style
The Calls SDK draws the call; the Kit draws only what covers it while it connects and if it fails.- SwiftUI
- UIKit
Next Steps
Outgoing Call
The ringing screen that becomes this call
Call Buttons
Start a call or a group meeting
Call Logs
The calls the user has had
Call Features
How calls ring and are presented