build.gradle
.CometChat.getLoggedInUser()
non-null).AndroidManifest.xml
: Internet, Camera, Microphone.ActivityCallDetailsBinding
).Component / Class | Role |
---|---|
CallsFragment | Fetches and displays the list of recent calls using CallsRequest . |
HomeActivity | Hosts bottom navigation; loads CallsFragment for the Calls tab. |
CallDetailsActivity | Container for the call details UI with tab navigation. |
CallDetailsTabFragmentAdapter | Adapter for ViewPager2 managing detail tabs. |
CometChatCallLogDetails | UI Kit widget that renders metadata, participants, history, and recordings. |
CallDetailsViewModel | ViewModel fetching call data and exposing it via LiveData. |
Fragments: | |
CallDetailsTabParticipantsFragment | Shows the participants list. |
CallDetailsTabHistoryFragment | Shows join/leave history entries. |
CallDetailsTabRecordingsFragment | Shows call recordings with playback actions. |
CallsFragment
CallsFragment.java
CallsFragment
in HomeActivity
HomeActivity.java
CallDetailsActivity
CallDetailsActivity.java
CometChatCallLogDetails
ComponentCometChatTheme
or custom attributes.CallsRequestBuilder().setTypes(CallType.MISSED)
to filter.LiveData<Throwable>
in CallDetailsViewModel
to show retry UIs.detailsView.setOnError()
and setOnEmpty()
for fallback views in UI Kit widget.Feature | Component / Method |
---|---|
Display call logs list | CallsRequest.fetchNext() in CallsFragment |
Navigate to detail screen | Intent + CallDetailsActivity |
Render detail tabs | CallDetailsTabFragmentAdapter |
Single-widget detail view | CometChatCallLogDetails |
Theming & styling | CometChatTheme , custom styles |
Error & empty-state handling | setOnError() , setOnEmpty() |