CometChatOutgoingCall
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.
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.
onEndCallButtonPressed
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.
Component
. 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. |
Methods | 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 |