Skip to main content
CometChatCallLogs renders a scrollable list of call logs for the logged-in user with caller names, avatars, call status indicators, and timestamps.

Where It Fits

CometChatCallLogs is a list component. It renders the user’s call history and emits the selected CallLog via onItemClick. Use it as a standalone call history screen or as a tab in a tabbed layout alongside conversations and contacts.
activity_call_logs.xml

Quick Start

Add to your layout XML:
Or programmatically:
Prerequisites: CometChat SDK initialized with CometChatUIKit.init(), a user logged in, the UI Kit dependency added, and the CometChat Calls SDK configured. Or in a Fragment:

Filtering Call Logs

Pass a CallLogRequest.CallLogRequestBuilder to control what loads:

Filter Recipes

Pass the builder object, not the result of .build(). The component calls .build() internally. Default page size is 30 with infinite scroll.

Actions and Events

Callback Methods

onItemClick

Fires when a call log row is tapped. Primary navigation hook.
Replaces the default item-click behavior. Your custom lambda executes instead of the built-in navigation.

onItemLongClick

Fires when a call log row is long-pressed.

onBackPress

Fires when the user presses the back button in the toolbar.

onError

Fires on internal errors (network failure, auth issue, SDK exception).

onLoad

Fires when the list is successfully fetched and loaded.

onEmpty

Fires when the list is empty after loading.

Functionality


Custom View Slots

Leading View

Replace the avatar / left section.

Title View

Replace the name / title text.

Subtitle View

Replace the subtitle text below the caller’s name.

Trailing View

Replace the right section of each call log item.

Item View

Replace the entire list item row.

State Views

Overflow Menu



Common Patterns

Minimal list — hide all chrome

Audio calls only

Video calls only


Advanced Methods

ViewModel Access

See ViewModel & Data for ListOperations, state observation, and custom repositories.

Style

Define a custom style in themes.xml:
themes.xml

Style Properties

See Component Styling for the full reference.

Next Steps

Call Features

Voice and video calling overview

Conversations

Browse recent conversations

Component Styling

Detailed styling reference with screenshots

ViewModel & Data

Custom ViewModels, repositories, and ListOperations