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 CometChatIncomingCallStyle
to it using the following code snippet.
Here is the complete example for reference:
Property | Description | Code |
---|---|---|
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? |
Call Icon | Sets the Call Icon. | callIcon: Widget? |
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? |