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 Call Log Recordings component is composed of the following BaseComponents:
Usage
Integration
CometChatCallLogRecordings is a ViewController 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 set(recording:) property. This allows for easy customization and efficient display of call log recordings within your application’s interface.
- Swift
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. OnShareButtonClicked
TheonShareButtonClicked action is usually triggered when a user taps the share button associated with a recording in the call log. However, by employing the provided code snippet, you can effortlessly customize or override this default behavior to meet your specific application needs.
- Swift
2. OnDownloadButtonClicked
TheonDownloadButtonClicked 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.
- Swift
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. TheCall Log Recordings component does not have any exposed filters.
Events
Events are emitted by aComponent. 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 Call Log Recordings 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 theCallLogRecordings Component by applying the CallLogRecordingsStyle to it using the following code snippet.
- Swift
2. ListItem Styles
To apply customized styles to theListItemStyle component in the CallLogRecordings Component, you can use the following code snippet. For further insights on ListItemStyle Styles refer
- Swift
Swift
Ensure to pass and present
CometChatCallLogRecordings. If a navigation controller is already in use, utilize the pushViewController function instead of directly presenting the view controller.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.- Swift
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.EmptyView report
You can set a custom EmptyView using.set(emptyView: UIView) to match the empty view of your app.
- Swift
Custom_Empty_State_GroupViewa UIView file.
- Swift
Ensure to pass and present
CometChatCallLogRecordings. If a navigation controller is already in use, utilize the pushViewController function instead of directly presenting the view controller.ErrorView report
You can set a custom ErrorView using.set(errorView: UIView) to match the error view of your app.
- Swift
Custom_ErrorState_GroupView and pass it inside the .set(errorView: UIView) method.
Custom_ErrorState_GroupView
- Swift
Ensure to pass and present
CometChatCallLogRecordings. If a navigation controller is already in use, utilize the pushViewController function instead of directly presenting the view controller.Menus
You can set the Custom Menus to add more options to the CometChatCallLogRecordings component.- Swift
- You can customize the menus for CometChatCallLogRecordings to meet your requirements
CallLogRecordings, enhancing its interface with a personalized menu for a more user-friendly experience.
- Swift
Ensure to pass and present
CometChatCallLogRecordings. If a navigation controller is already in use, utilize the pushViewController function instead of directly presenting the view controller.