CometChatCallLogDetails
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.
CometChatCallLogDetails
is a Composite component, that can be seamlessly presented within your application. To display the details of a CallLog, you simply need to pass the corresponding CallLog object to the CometChatCallLogDetails
instance using its setCall()
property. This enables you to efficiently showcase specific call log details within your application’s interface.
Since CometChatCallLogDetails
can be launched by adding the following code snippet into the XML layout file.
CometChatCallLogDetails
within the XML code or in your activity or fragment then you’ll need to extract them and set the Call object using the appropriate method.
CometChatCallLogDetails
into your Activity and Fragment by adding the following code snippets into the respective classes.
CometChatCallLogDetails
component does not have any exposed actions.
CometChatCallLogDetails
component does not have any exposed filters.
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 CometChatCallLogDetails
component does not have any exposed events.
CometChatCallLogDetails
Component by applying the CallLogDetailsStyle
to it using the following code snippet.
Property | Description | Code |
---|---|---|
Background | used to set background color | .setBackground(@ColorInt int) |
Background | used to set a gradient background | .setBackground(Drawable) |
Border Color | used to set border color | .setBorderColor(@ColorInt int) |
Border Width | used to set border | .setBorderWidth(int) |
Close Icon Tint | used to set the color of the back icon in the app bar | .setCloseIconTint(@ColorInt int) |
CornerRadius | used to set corner radius | .setCornerRadius(double) |
Name Text Appearance | Used to set Name Text Appearance. | .setNameTextAppearance(@StyleRes int) |
Name Text Color | Used to set Name Text Color. | .setNameTextColor(@ColorInt int) |
Title Appearance | used to set style of the title in the app bar | .setTitleAppearance(@StyleRes int) |
Title Color | Used to set title Color | .setTitleColor(@ColorInt int) |
Avatar
component in the CometChatCallLogDetails
Component, you can use the following code snippet. For further insights on Avatar
Styles refer
Property | Description | Code |
---|---|---|
Call | Used to validate and fetch a list of available options for groups | .setCall(CallLog) |
Hide Profile | Hides view profile option for users | .hideProfile(boolean) |
Set Close Button Icon | Used to set back button located in the app bar | .setCloseButtonIcon(@DrawableRes int) |
Set Title | Used to set the title in the app bar | .setTitle(String) |
Show Close Button | Used to toggle visibility for back button | .showCloseButton(boolean) |
view_menu.xml
as a custom view file. Which we will inflate and pass to .setMenu()
.
setMenu
. You can get the child view reference and can handle click actions.
CometChatCallLogDetails
component by setting Custom Options and Template to incorporate additional functionalities when swiping.
CometChatCallLogDetailsOption
is the class providing structure for options to be shown for users and group membersCometChatCallLogDetailsOption
component.
properties | Type | Description |
---|---|---|
id | String | unique ID for the option |
title | String | used to set title for the option |
startIcon | @DrawableRes int | used to set start icon for the option |
endIcon | @DrawableRes int | used to set end icon for the option |
titleColor | @ColorInt int | used to set title color |
titleFont | String | used to set title text font |
titleAppearance | @StyleRes int | used to set style of the title text |
startIconTint | @ColorInt int | set color of start icon |
endIconTint | @ColorInt int | set color of end icon |
onClick | OnDetailOptionClick | the action to perform on click of option |
view | Function3<Context,CallLog, View> | to set a custom view for particular option |
CometChatCallLogDetailsTemplate
defines the structure for sections of options available in the CometChatCallLogDetails
CometChatCallLogDetailsTemplate
Methods | Type | Description |
---|---|---|
setId | String | unique ID for the option |
setTitle | String | a text to display below the icon |
setTitleAppearance | @StyleRes int | used to set style of the text below the icon |
setOptions | Function2<Context, CallLog, List<CometChatCallLogDetailsOption>> | options available under each section |
setSectionSeparatorColor | @ColorInt int | the color of the divider separating the sections of options |
hideSectionSeparator | boolean | if true doesn’t show the divider separating the sections of options |
setItemSeparatorColor | @ColorInt int | the color of the divider separating the each option |
setHideItemSeparator | @ColorInt int | if true doesn’t show the divider separating the each option |