CometChatCallButtons
is a Widget 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
directly using Navigator.push
, or you can define it as a widget within the build
method of your State
class.
CometChatCallButtons
CometChatCallButtons
as a Widget in the build MethodonError
and improve error handling.
Widget
. 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.
Events emitted by the Call buttons widget are as follows.
Event | Description |
---|---|
ccCallAccepted | Triggers when the outgoing call is accepted. |
ccCallRejected | Triggers when the outgoing call is rejected. |
CometChatCallButtons
Widget by applying the CometChatCallButtonsStyle
to it using the following code snippet.
Property | Description | Code |
---|---|---|
User | Used to set User object to the call button. | user: User? |
Group | Used to set Group object to the call button. | group: Group? |
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: CallSettingsBuilder? |
Hide Video Call | Hides the video call button. | hideVideoCallButton: bool? |
Hide Voice Call | Hides the voice call button. | hideVoiceCallButton: bool? |
Video Call Icon | Sets the icon for the video call button. | videoCallIcon: Icon? |
Voice Call Icon | Sets the icon for the voice call button. | voiceCallIcon: Icon? |
outgoingCallConfiguration | Sets the configurations for outgoing call component. | outgoingCallConfiguration: CometChatOutgoingCallConfiguration? |
CometChatCallButtons
widget does not provide additional functionalities beyond this level of customization.
Configurations
expose properties that are available in its individual components.Outgoing Call
component by making use of the OutgoingCallConfiguration
. You can accomplish this by employing the OutgoingCallConfiguration
as demonstrated below:
Outgoing Call
.