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.
CometChatCallLogHistory
component is composed of the following BaseComponents:
Components | Description |
---|---|
CometChatListBase | CometChatListBase is a container component featuring a title, customizable background options, and a dedicated list view for seamless integration within your application’s interface. |
CometChatListItem | This component displays data retrieved from a CallLog object on a card, presenting a title and subtitle. |
CometChatCallLogHistory
is a Component, it 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 CometChatCallLogHistory
instance using its setCallLog property. This enables you to efficiently showcase specific call log details within your application’s interface.
Since CometChatCallLogHistory
can be launched by adding the following code snippet into the XML layout file.
CometChatCallLogHistory
within the XML code or in your activity or fragment then you’ll need to extract them.
CometChatCallLogHistory
into your Activity and Fragment by adding the following code snippets into the respective classes.
setOnItemClickListener
action doesn’t have a predefined behavior. You can override this action using the following code snippet.
Property | Description | Code |
---|---|---|
Limit | Sets the limit for the call logs request | setLimit(limit: int) |
Call Type | Sets the call type for the call logs request | setCallType(callType: String) |
Call Status | Sets the call status for the call logs request | setCallStatus(callStatus: String) |
Has Recording | Sets the recording status for the call logs request | setHasRecording(hasRecording: boolean) |
Call Category | Sets the call category for the call logs request | setCallCategory(callCategory: String) |
Call Direction | Sets the call direction for the call logs request | setCallDirection(callDirection: String) |
UID | Sets the user ID for the call logs request | setUid(uid: String) |
GUID | Sets the group ID for the call logs request | setGuid(guid: String) |
Auth Token | Sets the auth token for the call logs request | setAuthToken(authToken: String) |
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 CometChatCallLogHistory
component does not have any exposed events.
CallLogHistoryStyle
Component by applying the CallLogHistoryStyle
to it using the following code snippet.
CallLogHistoryStyle
Property | Description | Code |
---|---|---|
Background | Used to set background color | .setBackground(@ColorInt int) |
Background | Used to set background Drawable | .setBackground(Drawable) |
Back Icon Tint | Used to set the color of the back icon in the app bar | .setBackIconTint(@ColorInt int) |
Border Color | Used to set border color | .setBorderColor(@ColorInt int) |
Border Width | Used to set border | .setBorderWidth(int) |
Call Duration Color | Used to set Call Duration color. | .setCallDurationColor(@ColorInt int) |
Call Status Color | Used to set the Call Status color. | .setCallStatusColor(@ColorInt int) |
Empty Text Appearance | Used to set the style of the response text shown when fetching the list of group members is empty | .setEmptyTextAppearance(@StyleRes int) |
Error Text Appearance | Used to set the style of the response text shown in case some error occurs | .setErrorTextAppearance(@StyleRes int) |
Header Separator Color | Used to set the color of the divider separating the CallLog items | .setHeaderSeparatorColor(@ColorInt int) |
Loading Icon Tint | Used to set the color of the icon shown while fetching the list of group members | .setLoadingIconTint(@ColorInt int) |
List Item Background Color | Used to set List Item Background color | .setListItemBackgroundColor(@ColorInt int) |
Title Appearance | Used to customise the appearance of the title in the app bar | .setTitleAppearance(@StyleRes int) |
ListItemStyle
component in the CallLogHistory
Component, you can use the following code snippet. For further insights on ListItemStyle
Styles refer
CometChatCallLogHistory
Property | Description | Code |
---|---|---|
Back Icon | Used to set back button icon | .backIcon(@DrawableRes int res) |
Empty State Text | Used to set a custom text response when fetching the users has returned an empty list | .emptyStateText(String) |
Error State Text | Used to set a custom text response when some error occurs on fetching the list of users | .errorStateText(String) |
Hide Error | Used to hide error on fetching users | .hideError(boolean) |
Set Title | Used to set title in the app bar | .setTitle(String) |
setEmptyStateView()
to match the empty view of your app.
empty_view_layout.xml
as a custom view file. Which we will inflate and pass to .setEmptyStateView()
.
setEmptyStateView
. You can get the child view reference and can handle click actions.
setErrorStateView()
to match the error view of your app.
error_state_view_layout.xml
as a custom view file. Which we will inflate and pass to .setErrorStateView()
.
setErrorStateView
. You can get the child view reference and can handle click actions.
CometChatCallLogHistory
component.
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.