Skip to main content

Where It Fits

CometChatCallButtons is a Component that 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.

Minimal Render


Actions and Events

Callback Props

onError

Fires on internal errors (network failure, auth issue, SDK exception).

Global UI Events

CometChatUIEventHandler emits events subscribable from anywhere in the application. Add listeners and remove them on cleanup.
EventFires whenPayload
ccCallRejectedInitiated call is rejected by the receiver{ call }
ccCallFailledError occurs during the initiated call{ call }
ccOutgoingCallUser initiates a voice/video call{ call }
When to use: sync external UI with call state changes. For example, update a call status indicator, show notifications, or log call events.

Styling

Using Style you can customize the look and feel of the component in your app. Pass a styling object as a prop to the CometChatCallButtons component.

Visibility Props

PropertyDescriptionCode
hideVoiceCallButtonToggle visibility of the voice call buttonhideVoiceCallButton?: boolean
hideVideoCallButtonToggle visibility of the video call buttonhideVideoCallButton?: boolean

Outgoing Call Configuration

You can customize the properties of the Outgoing Call component by making use of the outgoingCallConfiguration prop:
All exposed properties of OutgoingCallConfiguration can be found under Outgoing Call.

Next Steps

Incoming Call

Display and handle incoming calls

Outgoing Call

Display and manage outgoing calls

Call Logs

View call history and logs

Call Features

Overview of all calling features