- iOS
- Android

Outgoing Call is comprised of the following components:
Usage
Integration
- App.tsx
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.1. onDeclineButtonPressed
TheonDeclineButtonPressed event gets activated when the cancel button is clicked. It does not have a default behavior. However, you can override its behavior using the following code snippet.
- App.tsx
Filters
Filters allow you to customize the data displayed in a list within aComponent. 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 Outgoing Call 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. |
- Adding Listeners
- Removing Listeners
Customization
To fit your app’s design requirements, you can customize the appearance of the Outgoing Call 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.1. OutgoingCallStyle
To customize the appearance, you can assign aOutgoingCallStyle object to the Outgoing Call component.
- iOS
- Android

outgoingCallStyle.
- App.tsx
| Property | Description | Code |
|---|---|---|
| border | Used to set border | border?: BorderStyleInterface, |
| borderRadius | Used to set border radius | borderRadius?: number; |
| backgroundColor | Used to set background colour | background?: string; |
| height | Used to set height | height?: number | string; |
| width | Used to set width | width?: number | string; |
| titleFont | Used to set title text font | titleFont?: FontStyleInterface, |
| titleColor | Used to set title text color | titleColor?: string; |
| subtitleFont | Used to set subtitle text font | subtitleFont?: FontStyleInterface; |
| subtitleColor | Used to set subtitle text color | subtitleColor?: string; |
2. Decline Button Style
If you want to apply customized styles to theCancel Button, you can use the buttonStyle property for the same.
- iOS
- Android

- App.tsx
3. Avatar Style
If you want to apply customized styles to theAvatar component within the Outgoing Call Component, you can use the following code snippet. For more information you can refer Avatar Styles.
- App.tsx
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. Here is a code snippet demonstrating how you can customize the functionality of theOutgoing Call component.
- App.tsx
- iOS
- Android

| Property | Description | Code |
|---|---|---|
| declineButtonText | Used to set custom decline button text | declineButtonText?: string |
| declineButtonIcon | Used to set custom decline button icon URL | declineButtonIcon?: ImageType |
| 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 |
| call | Sets the call object for CometChatOutgoingCall | call?: CometChat.Call | CometChat.CustomMessage |
Advance
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. TheOutgoing Call component does not offer any advanced functionalities beyond this level of customization.