Outgoing Call
is comprised of the following components:
onDeclineButtonPressed
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.
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 Outgoing Call
component does not have any exposed filters.
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. |
OutgoingCallStyle
object to the Outgoing Call
component.
outgoingCallStyle
.
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; |
Cancel Button
, you can use the buttonStyle
property for the same.
Avatar
component within the Outgoing Call
Component, you can use the following code snippet. For more information you can refer Avatar Styles.
Outgoing Call
component.
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 |
Outgoing Call
component does not offer any advanced functionalities beyond this level of customization.