Overview
TheIncoming call is a Component that serves as a visual representation when the user receives an incoming call, such as a voice call or video call, providing options to answer or decline the call.

Incoming Call is comprised of the following base components:
Usage
Integration
- IncomingCallsDemo.tsx
- 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. onAccept
onAccept is triggered when you click the accept button of the Incoming Call component. You can override this action using the following code snippet.
- TypeScript
- JavaScript
IncomingCallsDemo.tsx
2. onDecline
onDecline is triggered when you click the Decline button of the Incoming Call component. You can override this action using the following code snippet.
- TypeScript
- JavaScript
IncomingCallsDemo.tsx
3. onError
This action doesn’t change the behavior of the component but rather listens for any errors that occur in the Incoming Call component.- TypeScript
- JavaScript
IncomingCallsDemo.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 Incoming 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.
- Add Listener
- Remove Listener
Customization
To fit your app’s design requirements, you can customize the appearance of the Incoming 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. IncomingCall Style
To customize the appearance, you can assign aIncomingCallStyle object to the Incoming Call component.

IncomingCallStyle.
- TypeScript
- JavaScript
IncomingCallsDemo.tsx
2. Avatar Style
If you want to apply customized styles to theAvatar component within the Incoming Call Component, you can use the following code snippet. For more information you can refer Avatar Styles.
- TypeScript
- JavaScript
IncomingCallsDemo.tsx
3. ListItem Style
If you want to apply customized styles to theListItemStyle component within the Incoming Call Component, you can use the following code snippet. For more information, you can refer ListItem Styles.
- TypeScript
- JavaScript
IncomingCallsDemo.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 theIncoming Call component.
- TypeScript
- JavaScript
IncomingCallsDemo.tsx


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.SubtitleView
By using thesubtitleView property, you can modify the SubtitleView to meet your specific needs.


- TypeScript
- JavaScript
IncomingCallsDemo.tsx
Configuration
Configurations offer the ability to customize the properties of each individual component within a Composite Component. The Incoming Call Component is a Composite Component and it has a specific set of configuration for each of its components.OngoingCall
If you want to customize the properties of the OngoingCall Component inside Incoming Call Component, you need use theCallScreenConfiguration object.
The OngoingCallConfiguration provides access to all the Action, Filters, Styles, Functionality, and Advanced properties of the OngoingCall component.
Please note that the properties marked with the report symbol are not accessible within the Configuration Object.

ongoingCallConfiguration.
- TypeScript
- JavaScript
IncomingCallsDemo.tsx