CometChatCallLogHistory
is a Component that shows a paginated list of all the calls between the logged-in user & another user or group. This allows the user to see all the calls with a specific user/group they have initiated/received/missed.
Call Log History
is comprised of the following components:
Components | Description |
---|---|
CometChatList | a reusable container component having title, search box, customisable 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 |
cometchat-divider | This component is a visual element used to separate content or sections within a CometChat interface, enhancing readability and visual organization |
cometchat-date | This Component used to show the date and time. You can also customize the appearance of this widget by modifying its logic. |
cometchat-button | This component represents a button with optional icon and text. |
onBackClick
is triggered when you click the Back button Icon of the Call Log History
component. It does not have a default behavior. However, you can override its behavior using the following code snippet.
onItemClick
is triggered when you click on a ListItem of the of the Call Log History
component. It does not have a default behavior. However, you can override its behavior using the following code snippet.
Call Log History
component.
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 CallLogHistory
does not produce any events.
CallLogHistory
component. We provide exposed methods that allow you to modify the experience and behavior according to your specific needs.
CallLogHistoryStyle
object to the Call Log History
component.
Example
In this example, we are employing the callLogHistoryStyle
.
CallLogHistoryStyle
:
Property | Description | Code |
---|---|---|
border | Used to set border | border?: string, |
borderRadius | Used to set border radius | borderRadius?: string; |
background | Used to set background colour | background?: string; |
height | Used to set height | height?: string; |
width | Used to set width | width?: string; |
titleFont | Used to set title font | titleFont?: string, |
titleColor | Used to set title color | titleColor?: string; |
emptyStateTextColor | Used to set empty state text color | emptyStateTextColor?: string; |
emptyStateTextFont | Used to set empty state text font | emptyStateTextFont?: string; |
errorStateTextColor | Used to set error state text color | errorStateTextColor?: string; |
errorStateTextFont | Used to set error state text font | errorStateTextFont?: string; |
loadingIconTint | Used to set loading icon tint | loadingIconTint?: string; |
backIconTint | Used to set back icon tint | backIconTint?: string; |
dateTextFont | Used to set date text font | dateTextFont?: string; |
dateTextColor | Used to set date text color | dateTextColor?: string; |
dateSeparatorTextFont | Used to set date separator text font | dateSeparatorTextFont?: string; |
dateSeparatorTextColor | Used to set date separator text color | dateSeparatorTextColor?: string; |
callDurationTextFont | Used to set call duration text font | callDurationTextFont?: string; |
callDurationTextColor | Used to set call duration text color | callDurationTextColor?: string; |
callStatusTextFont | Used to set call status text font | callStatusTextFont?: string; |
callStatusTextColor | Used to set call status text color | callStatusTextColor?: string; |
dividerColor | Used to set divider color | dividerColor?: string; |
ListItemStyle
component within the Call Log History
Component, you can use the following code snippet. For more information, you can refer ListItem Styles.
Call Log History
component.
Property | Description | Code |
---|---|---|
title | Used to set custom title | title='Your Custom Title' |
emptyStateText | Used to set custom empty state text | emptyStateText='Your Custom Empty State Text' |
errorStateText | Used to set custom error state text | errorStateText='Your Custom Error State Text' |
datePattern | Used to set custom date pattern | datePattern={DatePatterns.DayDateTime} |
dateSeparatorPattern | Used to set custom date separator pattern | dateSeparatorPattern={DatePatterns.DayDateTime} |
backIconUrl | Used to set custom back icon URL | backIconUrl?: string; |
loadingIconURL | Used to set custom loading icon URL | loadingIconURL?: string; |
callGroup | Used to set group object | callGroup={chatGroup} |
callUser | Used to set group object | callUser={chatUser} |
loadingStateView
to match the loading view of your app.
EmptyStateView
using emptyStateView
to match the empty view of your app.
ErrorStateView
using errorStateView
to match the error view of your app.