Skip to main content

Overview

The 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.

Usage

Integration

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.
If you’re defining the 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.
Activity and Fragment
You can integrate CometChatCallLogDetails 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. The CometChatCallLogDetails component does not have any exposed actions.

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 CometChatCallLogDetails 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 CometChatCallLogDetails 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. CallLogDetails Style
You can customize the appearance of the CometChatCallLogDetails Component by applying the CallLogDetailsStyle to it using the following code snippet.
List of properties exposed by CallLogDetailsStyle
2. Avatar Styles
To apply customized styles to the Avatar component in the CometChatCallLogDetails Component, you can use the following code snippet. For further insights on Avatar 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. You can set the Custom Menu to add more options to the CometChatCallLogDetails 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

Template and Options

Enhance your CometChatCallLogDetails component by setting Custom Options and Template to incorporate additional functionalities when swiping.
  1. CometChatCallLogDetailsOption is the class providing structure for options to be shown for users and group members
List of Functionality used to customize the appearance of the CometChatCallLogDetailsOption component.
  1. CometChatCallLogDetailsTemplate defines the structure for sections of options available in the CometChatCallLogDetails
List of Functionality exposed by CometChatCallLogDetailsTemplate Example