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 Log
is comprised of the following components:
Components | Description |
---|---|
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. |
cometchat-button | This component represents a button with optional icon and text. |
onItemPress
is triggered when you click on a ListItem of the Call Logs component. By default it initiate a call to the participant associated with the respective ListItem. You can override this action using the following code snippet.
onInfoIconPress
is triggered when you click the Info button Icon of the Call Logs
component. It does not have a default behavior. However, you can override its behavior using the following code snippet.
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 |
---|---|
ccCallRejected | This event is triggered when the initiated call is rejected by the receiver. |
ccCallFailled | This event is triggered when an error occurs during the intiated call. |
ccOutgoingCall | This event is triggered when the user initiates a voice/video call. |
CallLogsStyle
object to the Call Logs
component.
callLogsStyle
.
CallLogsStyle
:
Property | Description | Code |
---|---|---|
border | Used to set border | border?: BorderStyleInterface, |
borderRadius | Used to set border radius | borderRadius?: number; |
backgroundColor | Used to set background colour | background?: string; |
height | Used to set height | height?: number | string; |
width | Used to set width | width?: number | string; |
titleFont | Used to set title font | titleFont?: FontStyleInterface, |
titleColor | Used to set title color | titleColor?: string; |
loadingTint | Used to set loading icon tint | loadingTint?: string; |
emptyTextColor | Used to set empty state text color | emptyTextColor?: string; |
emptyTextFont | Used to set empty state text font | emptyTextFont?: FontStyleInterface; |
errorTextColor | Used to set error state text color | errorTextColor?: string; |
errorTextFont | Used to set error state text font | errorTextFont?: FontStyleInterface; |
separatorColor | Used to set the separator color | separatorColor?: string |
infoIconTint | Used to set info icon tint | infoIconTint?: string; |
missedCallIconTint | Used to set missed call icon tint | missedCallIconTint?: string; |
outgoingCallIconTint | Used to set outgoing call icon tint | outgoingCallIconTint?: string; |
incomingCallIconTint | Used to set incoming call icon tint | incomingCallIconTint?: string; |
subtitleTextColor | Used to set the subtitle text color | subtitleTextColor?: string; |
subtitleTextFont | Used to set subtitle text font | subtitleTextFont?: FontStyleInterface; |
dateTextFont | Used to set date text font | dateTextFont?: FontStyleInterface; |
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; |
Avatar
component within the Call Logs
Component, you can use the following code snippet. For more information you can refer Avatar Styles.
ListItemStyle
component within the Call Logs
Component, you can use the following code snippet. For more information, you can refer ListItem Styles.
Call Logs
component.
Property | Description | Code |
---|---|---|
title | Used to set custom title | title?: string |
emptyStateText | Used to set custom empty state text | emptyStateText?: string |
errorStateText | Used to set custom error state text | errorStateText?: string |
datePattern | Used to set custom date pattern | datePattern?: DatePattern |
dateSeparatorPattern | Used to set custom date separator pattern | dateSeparatorPattern?: DatePattern |
infoIcon | Used to set custom info icon | infoIcon?: ImageType |
incomingAudioCallIconUrl | Used to set custom incoming audio call icon | incomingAudioCallIconUrl?: string |
incomingVideoCallIconUrl | Used to set custom incoming video call icon | incomingVideoCallIconUrl?: string |
missedAudioCallIconUrl | Used to set custom missed audio call icon | missedAudioCallIconUrl?: string |
missedVideoCallIconUrl | Used to set custom missed video call icon | missedVideoCallIconUrl?: string |
outgoingAudioCallIconUrl | Used to set custom outgoing audio call icon | outgoingAudioCallIconUrl?: string |
outgoingVideoCallIconUrl | Used to set custom outgoing video call icon | outgoingVideoCallIconUrl?: string |
hideSeperator | Option to hide separator | hideSeperator?: boolean |
loadingIcon | Used to set custom loading icon | loadingIcon?: ImageType |
showBackButton | Used to show/hide the back button | showBackButto?: boolean |
BackButton | Used to set Custom Back Button | BackButton?: JSX.Element |
hideError | Used to hide errors | hideError?: boolean |
SubtitleView
for each call logs item to meet your requirements
TailView
for each call logs item to meet your requirements
LoadingStateView
to match the loading view of your app.
EmptyStateView
using EmptyStateView
to match the empty view of your app.