CometChatIncomingCall
is a Widget that serves as a visual representation when the user receives an incoming call, such as a voice call or video call, providing options to answer or decline the call.
CometChatIncomingCall
being a custom widget, offers versatility in its integration. It can be seamlessly launched via button clicks or any user-triggered action, enhancing the overall user experience and facilitating smoother interactions within the application.
You can launch CometChatIncomingCall
directly using Navigator.push
, or you can define it as a widget within the build
method of your State
class.
CometChatIncomingCall
CometChatIncomingCall
as a Widget in the build MethodonAccept
action is typically triggered when the user clicks on the accept button, initiating a predefined action. However, by implementing the following code snippet, you can easily customize or override this default behavior to suit your specific requirements.
onDecline
action is typically triggered when the user clicks on the reject button, initiating a predefined action. However, by implementing the following code snippet, you can easily customize or override this default behavior to suit your specific requirements.
onError
and improve error handling.
CometChatIncomingCall
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.
The CometChatIncomingCall
widget does not have any exposed events.
CometChatIncomingCall
Widget by applying the IncomingCallStyle
to it using the following code snippet.
Here is the complete example for reference:
Property | Description | Code |
---|---|---|
Accept Button Text Style | Sets the text style for the accept button. | acceptButtonTextStyle: TextStyle? |
Background | Sets the background color of the incoming call style. | background: Color? |
Border | Sets the border properties of the incoming call style. | border: BoxBorder? |
Border Radius | Sets the border radius of the incoming 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 incoming call style. | gradient: Gradient? |
Height | Sets the height of the incoming call style. | height: double? |
Width | Sets the width of the incoming 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:
declineButtonStyle
to it using the following code snippet.
Example
Here is the complete example for reference:
acceptButtonStyle
to it using the following code snippet.
Example
Here is the complete example for reference:
Property | Description | Code |
---|---|---|
Accept Button Icon Url | Sets the URL for the accept button icon. | acceptButtonIconUrl: String? |
Accept Button Text | Sets the text for the accept button. | acceptButtonText: String? |
Custom Sound For Calls | Sets the custom sound for incoming calls. | customSoundForCalls: 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 incoming calls. | disableSoundForCalls: bool? |
Subtitle | Sets the subtitle for the incoming call screen. | subtitle: String? |
CometChatIncomingCall
widget does not provide additional functionalities beyond this level of customization.