CometChatCallLogs
is a Widget that shows the list of Call Logs available. By default, names are shown for all listed users, along with their avatars if available.
CometChatCallLogs
widget is composed of the following BaseWidgets:
Widgets | Description |
---|---|
CometChatListBase | CometChatListBase is a container widget featuring a title, customizable background options, and a dedicated list widget for seamless integration within your application’s interface. |
CometChatListItem | This widget displays data retrieved from a CallLog object on a card, presenting a title and subtitle. |
CometChatCallLogs
being a wrapper 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 CometChatCallLogs
directly using Navigator.push
, or you can define it as a widget within the build
method of your State
class.
CometChatCallLogs
CometChatCallLogs
as a Widget in the build MethodonItemClick
functionality within CometChatCallLogs, empowering them with greater control and customization options.
The onItemClick
action function invoked when a call log item is clicked, typically used to open a detailed chat screen.
onBack
is triggered when you press the back button in the app bar. It has a predefined behavior; when clicked, it navigates to the previous activity. However, you can override this action using the following code snippet.
onCallLogIconClicked
and improve error handling.
CallLogRequestBuilder
Property | Description | Code |
---|---|---|
Auth Token | Sets the authentication token. | authToken: String? |
Call Category | Sets the category of the call. | callCategory: String? |
Call Direction | Sets the direction of the call. | callDirection: String? |
Call Status | Sets the status of the call. | callStatus: String? |
Call Type | Sets the type of the call. | callType: String? |
Guid | Sets the unique ID of the group involved in the call. | guid: String? |
Has Recording | Indicates if the call has a recording. | hasRecording: bool |
Limit | Sets the maximum number of call logs to return per request. | limit: int |
Uid | Sets the unique ID of the user involved in the call. | uid: String? |
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 CometChatCallLogs
widget does not have any exposed events.
CometChatCallLogs
Widget by applying the CometChatCallLogsStyle
to it using the following code snippet.
Methods | Description | Code |
---|---|---|
showBackButton | Used to toggle visibility for back button in the app bar. | setBackIconVisibility: bool? |
hideAppbar | Used to toggle visibility for back button in the app bar. | hideAppbar: bool? |
Property | Description | Code |
---|---|---|
Back Button | A widget for the back button. | backButton: Widget? |
Call Logs Request Builder | Builder for creating call log requests. | callLogsRequestBuilder: CallLogRequestBuilder? |
Date Pattern | Format pattern for date display. | datePattern: String? |
Date Separator Pattern | Format pattern for date separator. | dateSeparatorPattern: String? |
Empty State Text | Text to display when there are no call logs. | emptyStateText: String? |
Error State Text | Text to display when there is an error. | errorStateText: String? |
Hide Separator | Whether to hide the separator between call logs. | hideSeparator: bool |
Incoming Audio Call Icon | Icon for incoming audio calls. | incomingAudioCallIcon: Icon? |
Incoming Video Call Icon | Icon for incoming video calls. | incomingVideoCallIcon: Icon? |
Info Icon Url | URL for the info icon. | infoIconUrl: String? |
Loading Icon Url | URL for the loading icon. | loadingIconUrl: String? |
Missed Audio Call Icon | Icon for missed audio calls. | missedAudioCallIcon: Icon? |
Missed Video Call Icon | Icon for missed video calls. | missedVideoCallIcon: Icon? |
Outgoing Audio Call Icon | Icon for outgoing audio calls. | outgoingAudioCallIcon: Icon? |
Outgoing Video Call Icon | Icon for outgoing video calls. | outgoingVideoCallIcon: Icon? |
Set Options | Set List of actions available on the long press of list item . | setOptions: List<CometChatOption>? Function(Group group,CometChatGroupsController controller, BuildContext context)? |
Add Options | adds into the current List of actions available on the long press of list item | addOptions: List<CometChatOption>? Function(Group group,CometChatGroupsController controller, BuildContext context)? |
CometChatCallLogs
has CometChatOutgoingCall
widget. Hence, each of these widgets will have its individual `Configuration“.
Configurations
expose properties that are available in its individual widgets.OutgoingCallConfiguration
. You can accomplish this by employing the outgoingCallConfiguration
props as demonstrated below:
Example
Here is the complete example for reference:
OutgoingCallConfiguration
can be found under OutGoing Call. Properties marked with the 🛑 symbol are not accessible within the Configuration Object.