CometChatCallLogs
is a Component that shows the list of Call Logs available. By default, names are shown for all listed users, along with their avatars if available.
CometChatCallLogs
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. |
CometChatCallLogs
being a wrapper component, offers versatility in its integration. It can be seamlessly launched via button clicks or any user-triggered action, enhancing the overall user experience and facilitating smoother interactions within the application.
Since CometChatCallLogs
can be launched by adding the following code snippet to the XML layout file.
CometChatCallLogs
within the XML code or in your activity or fragment then you’ll need to extract them and set them on the User object using the appropriate method.
CometChatCallLogs
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.
OnError
and improve error handling.
Property | Description | Code |
---|---|---|
Limit | Sets the limit for the call logs request | .setLimit(int limit) |
Call Type | Sets the call type for the call logs request | .setCallType(String callType) |
Call Status | Sets the call status for the call logs request | .setCallStatus(String callStatus) |
Has Recording | Sets the recording status for the call logs request | .setHasRecording(boolean hasRecording) |
Call Direction | Sets the call direction for the call logs request | .setCallDirection(String callDirection) |
UID | Sets the user ID for the call logs request | .setUid(String uid) |
GUID | Sets the group ID for the call logs request | .setGuid(String guid) |
Call Category | Sets the call category for the call logs request | .setCallCategory(String callCategory) |
Auth Token | Sets the auth token for the call logs request | .setAuthToken(String authToken) |
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 CometChatCallLogs
component does not have any exposed events.
CometChatCallLogs
Component by applying the CallLogsStyle
to it using the following code snippet.
Property | Description | Code |
---|---|---|
Back Icon Tint | Used to set the color of the back icon in the app bar | .setBackIconTint(@ColorInt int) |
Background | Used to set background Drawable | .setBackground(Drawable) |
Background | Used to set the background color | .setBackground(@ColorInt int) |
Border Color | Used to set border color | .setBorderColor(@ColorInt int) |
Border Width | Used to set border | .setBorderWidth(int) |
Call Status Color | Used to set the Call Status color | .setCallStatusColor(@ColorInt int) |
CornerRadius | Used to set border radius | .setCornerRadius(float) |
Empty Text Appearance | Used to set the style of the response text shown when fetching the list of group members has returned empty | .setEmptyTextAppearance(@StyleRes int) |
Error Text Appearance | Used to set the style of the response text shown in case some error occurs while fetching group members | .setErrorTextAppearance(@StyleRes int) |
Header Separator Color | Used to set the color of the divider separating the CallLog items | .setHeaderSeparatorColor(@ColorInt int) |
Info Icon Tint | Used to set the info icon color | .setInfoIconTint(@ColorInt int) |
Incoming Audio Call Icon Tint | Used to set the color of the Incoming Audio Call Icon | .setIncomingAudioCallIconTint(@ColorInt int) |
Incoming Video Call Icon Tint | Used to set the color of the Incoming Video Call Icon | .setIncomingVideoCallIconTint(@ColorInt int) |
Loading Icon Tint | Used to set the color of the icon shown while the list of group members is being fetched | .setLoadingIconTint(@ColorInt int) |
Missed Audio Call Icon Tint | Used to set the color of the Missed Audio Call Icon | .setMissedAudioCallIconTint(@ColorInt int) |
Missed Call Title Color | Used to set the Missed Call Title color | .setMissedCallTitleColor(@ColorInt int) |
Missed Video Call Icon Tint | Used to set the color of the Missed Video Call Icon | .setMissedVideoCallIconTint(@ColorInt int) |
Outgoing Audio Call Icon Tint | Used to set the color of the Outgoing Audio Call Icon | .setOutgoingAudioCallIconTint(@ColorInt int) |
Outgoing Video Call Icon Tint | Used to set the color of the Outgoing Video Call Icon | .setOutgoingVideoCallIconTint(@ColorInt int) |
SubTitle Appearance | Used to customise the appearance of the subtitle in the app bar | .setSubTitleAppearance(@StyleRes int) |
Title Appearance | Used to customise the appearance of the title in the app bar | .setTitleAppearance(@StyleRes int) |
Avatar
component in the CallLogs
Component, you can use the following code snippet. For further insights on Avatar
Styles refer
ListItemStyle
component in the CallLogs
Component, you can use the following code snippet. For further insights on ListItemStyle
Styles refer
Property | Description | Code |
---|---|---|
Back Icon | Used to set the 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 Call | Used to set the call object for displaying the incoming call screen | .setCall(Call) |
Set Incoming Audio Call Icon | Used to set the Incoming Audio Call icon | .setIncomingAudioCallIcon(@DrawableRes int) |
Set Incoming Video Call Icon | Used to set the Incoming Video Call icon | .setIncomingVideoCallIcon(@DrawableRes int) |
Set Outgoing Video Call Icon | Used to set the Outgoing Video Call icon | .setOutgoingVideoCallIcon(@DrawableRes int) |
Set Outgoing Audio Call Icon | Used to set the Outgoing Audio Call icon | .setOutgoingAudioCallIcon(@DrawableRes int) |
Set Title | Used to set title in the app bar | .setTitle(String) |
Set User | Used to set User object to the call button | .setUser(User) |
Set Voice Button Text | Used to set voice call text | .setVoiceButtonText(String) |
Set Video Button Text | Used to set video call text | .setVideoButtonText(String) |
.setEmptyStateView()
to match the empty view of your app.
empty_view_layout.xml
. You can choose any view you prefer. This view should be inflated and passed to the setEmptyStateView()
method.
ErrorStateView
using setErrorStateView
to match the error view of your app.
error_state_view_layout.xml
. You can choose any view you prefer. This view should be inflated and passed to the setErrorStateView()
method.