CallLogDetails
is a Component that displays all the information related to a call. This component displays information like user/group information, participants of the call, recordings of the call (if available) & history of all the previous calls. Also, it has buttons to start a new call.
Components | Description |
---|---|
Call Log History | The Call Log History component 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 Recordings | The Call Log Recordings component shows a paginated list of recordings of a particular call. |
Call Log participants | The Call Log Participants component shows a separate view that displays comprehensive information about Call. |
onBack
function is built to respond when you press the back button in the AppBar.
By default, this action does not have a predefined behavior. However, you have the flexibility to override this event and tailor it to suit your needs 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.
The CallLogDetails
component does not have any exposed filters.
CallLogDetails
component does not produce any events but its component does.
CallLogDetailsStyle
object to the CallLogDetails
component.
CallLogDetailsStyle
.
CallLogDetails
Style:
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 customise the font of the title in the app bar | titleFont?: FontStyleInterface; |
titleColor | Used to customise the color of the title in the app bar | titleColor?: string; |
closeIconTint | Used to set the close icon tint | closeIconTint?: string |
Avatar
component within the CallLogDetails
Component, you can use the following code snippet. For more information you can refer Avatar Styles.
CallLogDetails
component.
Property | Description | Code |
---|---|---|
title | Used to set title | title?: string |
closeButtonIconImage | Used to set close Button Icon Image | closeButtonIconImage?: ImageType |
call | Used to set the call log | declcallineButtonText?: CallLog |
data | Used to set custom details template | data?: CometChatDetailsTemplate[] |
showCloseButton | Used to show/hide the close button | showCloseButton?: boolean |
CometChatDetailsTemplate
offers a structure for organizing information in the CometChat details component. It serves as a blueprint, defining how user-related details are presented. This structure allows for customization and organization within the CometChat interface.
This defines the structure of template data for the details component.
Name | Type | Description |
---|---|---|
id | string | number | Identifier for the template option |
title | string | Heading text for the template option |
titleColor | string | Sets the foreground color of title text |
titleFont | FontStyleInterface | Sets all the different properties of font for the title text |
titleStyle | TextStyle | Sets the title style |
sectionSeparatorColor | string | Sets the color of the template separator |
itemSeparatorColor | string | Sets the color of the template’s option separator text |
hideSectionSeparator | boolean | When set to true, hides the separator for the template |
hideItemSeparator | boolean | When set to true, hides the separator under each option in a template |
options | CometChatDetailsOption[] | Sets the CometChatDetailsOption s |
DetailsOption
defines the structure for individual options within the CometChat details component, facilitating customization and functionality for user interactions.
This defines the structure of each option for a template in the details component.
Property | Type | Description |
---|---|---|
id | string | number | Identifier for the template |
title | string | Heading text for the template |
titleStyle | TextStyle | Sets the title style |
icon | ImageType | Sets all the different properties of font for the title text |
iconTint | string | Sets the icon tint` |
backgroundColor | string | Sets the background color |
CustomView | () => JSX.Element | Sets custom view for the option |
Tail | () => JSX.Element | Sets the tail view for the option |
height | number | Sets the height |
onClick | ({ user, group }: { user?: any; group?: any }) => void; | Sets the onClick Handler for the option |
CallLogHistory
, CallLogParticipants
and CallLogRecordings
component. Hence, each of these components will have its individual `Configuration“.
Configurations
expose properties that are available in its individual components.callLogHistoryConfiguration
. You can accomplish this by employing the callLogHistoryConfiguration
props as demonstrated below:
GroupsConfiguration
can be found under Groups. Properties marked with the symbol are not accessible within the Configuration Object.
Example
Let’s say you want to change the style of the Groups subcomponent and, in addition, you only want to display the Group List based on only joined groups and setting the limit to 3.
You can modify the CallLogHistory
list item style using the ListItemStyle
property.
CallLogParticipantsConfiguration
props as demonstrated below:
CallLogParticipantsConfiguration
can be found under Messages. Properties marked with the symbol are not accessible within the Configuration Object.
Example
Let’s say you want to change the style of the Messages subcomponent and, in addition, you only want to hide message header.
You can modify the CallLogParticipants
list item style using the ListItemStyle
property.