Skip to main content

Overview

CometChatCallLogRecordings is a Component that shows a paginated list of recordings for a particular call. This allows the user to view all recordings, see the duration of each recording, and access a download link to download the recordings.
The CometChatCallLogRecordings component is composed of the following BaseComponents:

Usage

Integration

CometChatCallLogRecordings is a component that seamlessly integrates into your application. To present the details of call recordings, you can simply instantiate the CometChatCallLogRecordings instance and set the list of recordings using its setRecordingList() property. This allows for easy customization and efficient display of call log recordings within your application’s interface. Since CometChatCallLogRecordings can be launched by adding the following code snippet into the XML layout file.
If you’re defining the CometChatCallLogRecordings within the XML code or in your activity or fragment then you’ll need to extract them and set the Recording List using the setRecordingList() method.
Activity and Fragment
You can integrate CometChatCallLogRecordings into your Activity and Fragment by adding the following code snippets into the respective classes.
YourActivity.java

Actions

Actions dictate how a component functions. They are divided into two types: Predefined and User-defined. You can override either type, allowing you to tailor the behavior of the component to fit your specific needs.
1. SetOnDownloadClickListener
The setOnDownloadClickListener action is typically triggered when a user taps the download button associated with a recording in the call log. However, by utilizing the provided code snippet, you can seamlessly customize or override this default behavior to align with your specific application requirements.

Filters

Filters allow you to customize the data displayed in a list within a 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 CometChatCallLogRecordings component does not have any exposed filters.

Events

Events are emitted by a 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 CometChatCallLogRecordings component does not have any exposed events.

Customization

To fit your app’s design requirements, you can customize the appearance of the conversation component. We provide exposed methods that allow you to modify the experience and behavior according to your specific needs.

Style

Using Style you can customize the look and feel of the component in your app, These parameters typically control elements such as the color, size, shape, and fonts used within the component.
1. CallLogRecordings Style
You can customize the appearance of the CometChatCallLogRecordings Component by applying the CallLogRecordingsStyle to it using the following code snippet.
List of properties exposed by CallLogRecordingsStyle
2. ListItem Styles
To apply customized styles to the ListItemStyle component in the CallLogRecordings Component, you can use the following code snippet. For further insights on ListItemStyle Styles refer

Functionality

These are a set of small functional customizations that allow you to fine-tune the overall experience of the component. With these, you can change text, set custom icons, and toggle the visibility of UI elements.
Below is a list of customizations along with corresponding code snippets

Advanced

For advanced-level customization, you can set custom views to the component. This lets you tailor each aspect of the component to fit your exact needs and application aesthetics. You can create and define your views, layouts, and UI elements and then incorporate those into the component.

SetEmptyStateView 🛑

You can set a custom EmptyStateView using setEmptyStateView() to match the error view of your app.
Example
You need to create a empty_view_layout.xml as a custom view file. Which we will inflate and pass to .setEmptyStateView().
empty_view_layout.xml
You inflate the view and pass it to setEmptyStateView. You can get the child view reference and can handle click actions.

You can set the Custom Menu to add more options to the CometChatCallLogRecordings component.
Example
You need to create a view_menu.xml as a custom view file. Which we will inflate and pass to .setMenu().
view_menu.xml
You inflate the view and pass it to setMenu. You can get the child view reference and can handle click actions.
YourActivity.java