CometChatOutgoingCall
Widget 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 Widget 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
directly using Navigator.push
, or you can define it as a widget within the build
method of your State
class.
CometChatOutgoingCall
CometChatOutgoingCall
as a Widget in the build MethodonCancelled
action is typically triggered when the call is ended, carrying out default actions. However, with the following code snippet, you can effortlessly customize or override this default behavior to meet your specific needs.
onError
and improve error handling.
CometChatOutgoingCall
Widget does not have any exposed filters.
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 Outgoing call Widget are as follows.
Event | Description |
---|---|
ccCallAccepted | Triggers when the outgoing call is accepted. |
ccCallRejected | Triggers when the outgoing call is rejected. |
CometChatOutgoingCall
Widget by applying the CometChatOutgoingCallStyle
to it using the following code snippet.
Example
Here is the complete example for reference:
Property | Description | Code |
---|---|---|
Custom Sound For Calls | Sets the custom sound for outgoing calls. | customSoundForCalls: String? |
Custom Sound For Calls Package | Sets the package for the custom sound for outgoing calls. | customSoundForCallsPackage: String? |
Disable Sound For Calls | Disables sound for outgoing calls. | disableSoundForCalls: bool? |
Call | Used to set the Call object against which we need to display the outgoing screen. | call: Call |
callSettingsBuilder | Sets the CallSettingsBuilder for the outgoing call configuration. | callSettingsBuilder: CallSettingsBuilder? |
declineButtonIcon | Sets decline button icon. | declineButtonIcon: Widget? |