CometChatCallLogs
is a Component that shows the list of Call Log available . By default, names are shown for all listed users, along with their avatar if available.
Call Logs
is comprised of the following components:
Components | Description |
---|---|
CometChatList | A reusable container component having title, search box, customizable background and a list view. |
CometChatListItem | A component that renders data obtained from a Group object on a Tile having a title, subtitle, leading and trailing view. |
CometChatDate | This component used to show the date and time. You can also customize the appearance of this widget by modifying its logic. |
onItemClick
is a callback function which triggers when a call log list item is clicked. It does not have a default behavior. However, you can override its behavior using the following code snippet.
onCallButtonClicked
is a callback function which triggers when the call button in the trailing view is clicked.
Component
. You can filter the list based on your specific criteria, allowing for a more customized. Filters can be applied using RequestBuilders
of Chat SDK.
Methods | Type | Description |
---|---|---|
setLimit | number | Specifies the number of call logs to fetch. |
setCallType | String | Sets the type of calls to fetch (call or meet). |
setCallStatus | callStatus | Sets the status of calls to fetch (initiated, ongoing, etc.) |
setHasRecording | boolean | Sets whether to fetch calls that have recordings. |
setCallCategory | string | Sets the category of calls to fetch (call or meet). |
setCallDirection | string | Sets the direction of calls to fetch (incoming or outgoing) |
setUid | string | Sets the UID of the user whose call logs to fetch. |
setGuid | string | Sets the GUID of the user whose call logs to fetch. |
setAuthToken | string | Sets the Auth token of the logged-in user. |
Component
. 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 list of events emitted by the Call Logs
component is as follows.
Event | Description |
---|---|
ccMessageSent | This event is triggered when the sent message is in transit and also when it is received by the receiver. |
Call Logs
component.
Property | Description | Code |
---|---|---|
Active Call | Object representing the active call that is currently selected. | activeCall={call} |
Show Scrollbar | Controls the visibility of the scrollbar in the list. | showScrollbar={true} |
Date Pattern | Specifies the date format for rendering dates in the call logs. | datePattern={DatePatterns.DayDateTime} |
Loading View | A custom view to display when call logs are being loaded. | loadingView={<>Custom Loading View</>} |
Empty View | A custom view to display when no call logs are available. | emptyView={<>Custom Empty View</>} |
Error View | A custom view to display when an error occurs while fetching the call logs. | errorView={<>Custom Error View</>} |