CometChatCallButtons
is a Component provides users with the ability to make calls, access call-related functionalities, and control call settings. Clicking this button typically triggers the call to be placed to the desired recipient.
CometChatCallButtons
is a Component provides users with the ability to make calls, access call-related functionalities, and control call settings. Clicking this button typically triggers the call to be placed to the desired recipient.
CometChatCallButtons
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 Call Buttons
component is as follows.
Event | Description |
---|---|
ccCallRejected | This event is triggered when the initiated call is rejected by the receiver. |
ccCallFailled | This event is triggered when an error occurs during the intiated call. |
ccOutgoingCall | This event is triggered when the user initiates a voice/video call. |
Property | Description | Code |
---|---|---|
group | Used to set the group object for Call Buttons | group?: CometChat.Group |
user | Sets the user object for Call Buttons | user?: CometChat.User |
hideVoiceCall | Used to hide Voice Call | `hideVoiceCall?: boolean |
hideVideoCall | Used to hide Video Call | `hideVideoCall?: boolean |
callSettingsBuilder | Sets the call settings builder callback function. This callback is responsible for configuring the call settings based on the user, group, and call type (audio/video). | callSettingsBuilder={callSettingsBuilderObject} |
outgoingCallConfiguration | Sets the configurations for outgoing call component. | outgoingCallConfiguration={outgoingCallConfigurationObject} |
CometChatCallButtons
component does not provide additional functionalities beyond this level of customization.
Configurations
expose properties that are available in its individual components.OutgoingCallConfiguration
. You can accomplish this by employing the OutgoingCallConfiguration
as demonstrated below:
OutgoingCallConfiguration
can be found under Outgoing Call.