Overview
TheCometChatOutgoingCall
Component is a visual representation of a user-initiated call, whether it’s a voice or video call. It serves as an interface for managing outgoing calls, providing users with essential options to control the call experience. This component typically includes information about the call recipient, call controls for canceling the call, and feedback on the call status, such as indicating when the call is in progress.

Usage
Integration
CometChatOutgoingCall
being a custom component, offers versatility in its integration. It can be seamlessly launched via button clicks or any user-triggered action, enhancing the overall user experience and facilitating smoother interactions within the application.
Actions
Actions dictate how a component functions. They are divided into two types: Predefined and User-defined. You can override either type, allowing you to tailor the behavior of the component to fit your specific needs.onEndCallButtonPressed
TheonEndCallButtonPressed
action is typically triggered when the end call button is pressed, carrying out default actions. However, with the following code snippet, you can effortlessly customize or override this default behavior to meet your specific needs.
onError
You can customize this behavior by using the provided code snippet to override the onError and improve error handling.Filters
Filters allow you to customize the data displayed in a list within a Component. You can filter the list based on your specific criteria, allowing for a more customized. Filters can be applied using RequestBuilders of Chat SDK. The OutgoingCall component does not have any exposed filters.Events
Events are emitted by aComponent
. By using event you can extend existing functionality. Being global events, they can be applied in Multiple Locations and are capable of being Added or Removed.
The list of events emitted by the Incoming Call component is as follows.
Event | Description |
---|---|
ccCallEnded | This event is triggered when the initiated call successfully ends. |
ccCallFailled | This event is triggered when an error occurs during the intiated call. |
Customization
To fit your app’s design requirements, you can customize the appearance of the conversation component. We provide exposed methods that allow you to modify the experience and behavior according to your specific needs.Style
Using Style you can customize the look and feel of the component in your app, These parameters typically control elements such as the color, size, shape, and fonts used within the component.
Functionality
These are a set of small functional customizations that allow you to fine-tune the overall experience of the component. With these, you can change text, set custom icons, and toggle the visibility of UI elements. Below is a list of customizations along with corresponding code snippetsMethods | Description | Code |
---|---|---|
call | Sets the call object for CometChatOutgoingCall | call?: CometChat.Call | CometChat.CustomMessage |
callSettingsBuilder | Sets the CallSettingsBuilder for the outgoing call configuration. | callSettingsBuilder={callSettingsBuilderObject} |
customSoundForCalls | Used to set custom sound for calls | customSoundForCalls?: string |
disableSoundForCalls | Used to disable/enable the sound of Outgoing calls, by default it is set to false | disableSoundForCalls?: boolean |
Advanced
For advanced-level customization, you can set custom views to the component. This lets you tailor each aspect of the component to fit your exact needs and application aesthetics. You can create and define your views, layouts, and UI elements and then incorporate those into the component.TitleView
Allows setting a custom list item view to be rendered for each conversation in the fetched call list. Use Cases:- Display the contact’s name in a unique style.
- Show a call type indicator (Voice Call, Video Call).
- Add status text like “Calling…” or “Ringing…”.
SubtitleView
Enables customizing the subtitle view, typically used for additional call details. Use Cases:- Display call duration if available.
- Show network strength indicators.
- Include a custom message like “Connecting…”.
AvatarView
Allows setting a custom leading view, usually used for the contact’s profile picture or avatar. Use Cases:- Show a profile picture with an online indicator.
- Display a custom icon based on the call type (Voice/Video).
- Use an animated ring effect around the avatar when calling.
EndCallView
Defines a custom title view for the end call button, allowing modifications to the call termination UI. Use Cases:- Customize the “End Call” button style.
- Add a confirmation pop-up before ending the call.
- Display different icons based on call status (Active, On Hold).