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 MethodonDecline
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. |
OutgoingCallStyle
Widget by applying the OutgoingCallStyle
to it using the following code snippet.
Example
Here is the complete example for reference:
OutgoingCallStyle
Property | Description | Code |
---|---|---|
Background | Sets the background color of the outgoing call style. | background: Color? |
Border | Sets the border properties of the outgoing call style. | border: BoxBorder? |
Border Radius | Sets the border radius of the outgoing call style. | borderRadius: double? |
Decline Button Text Style | Sets the text style for the decline button. | declineButtonTextStyle: TextStyle? |
Gradient | Sets the gradient applied to the outgoing call style. | gradient: Gradient? |
Height | Sets the height of the outgoing call style. | height: double? |
Width | Sets the width of the outgoing call style. | width: double? |
Avatar
widget in the CometChatIncomingCall
Widget, you can use the following code snippet. For further insights on Avatar
Styles refer
Example
Here is the complete example for reference:
buttonStyle
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? |
Decline Button Icon Url | Sets the URL for the decline button icon. | declineButtonIconUrl: String? |
Decline Button Icon Url Package | Sets the package for the decline button icon URL. | declineButtonIconUrlPackage: String? |
Decline Button Text | Sets the text for the decline button. | declineButtonText: String? |
Disable Sound For Calls | Disables sound for outgoing calls. | disableSoundForCalls: bool? |
Subtitle | Sets the subtitle for the outgoing call screen. | subtitle: String? |
CometChatOutgoingCall
widget does not provide additional functionalities beyond this level of customization.