CometChatCallLogs
is a Component that shows the list of Call Log available . By default, names are shown for all listed users, along with their avatar if available.
Call Logs
component is composed of the following BaseComponents:
Components | Description |
---|---|
CometChatListBase | CometChatListBase is a container component featuring a title, customizable background options, and a dedicated list view for seamless integration within your application’s interface. |
CometChatListItem | This component displays data retrieved from a CallLog object on a card, presenting a title and subtitle. |
CometChatCallLogs
being a custom view controller, offers versatility in its integration. It can be seamlessly launched via button clicks or any user-triggered action, enhancing the overall user experience and facilitating smoother interactions within the application.
setOnItemClick
action doesn’t have a predefined behavior. You can override this action using the following code snippet.
On Error
and improve error handling.
Method | Description | Code |
---|---|---|
fetchPrevious | Fetches previous call logs | fetchPrevious(authToken: String, onSuccess: (([CallLog]) -> Void), onError: (_ error: CometChatCallException?) -> Void) |
fetchNext | Fetches next call logs | fetchNext(onSuccess: (([CallLog]) -> Void), onError: (_ error: CometChatCallException?) -> Void) |
limit | Sets the limit for the call logs request | .set(limit: Int) |
callType | Sets the call type for the call logs request | .set(callType: CallType) |
callStatus | Sets the call status for the call logs request | .set(callStatus: CallStatus) |
hasRecording | Sets the recording status for the call logs request | .set(hasRecording: Bool) |
callDirection | Sets the call direction for the call logs request | .set(callDirection: CallDirection) |
uid | Sets the user ID for the call logs request | .set(uid: String) |
guid | Sets the group ID for the call logs request | .set(guid: String) |
authToken | Sets the auth token for the call logs request | .set(authToken: String?) |
build | Builds the call logs request | .build() |
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 Call Logs
component does not have any exposed events.
CallLog
Component by applying the CallLogStyle
to it using the following code snippet.
Property | Description | Code |
---|---|---|
callStatusTextFont | Sets the call status font | .set(callStatusTextFont: UIFont) |
missedCallTitleTint | Sets the missed call color | .set(missedCallTitleTint: UIColor) |
callTimeTextFont | Sets the call time font | .set(callTimeTextFont: UIFont) |
dateSeparatorTextFont | Sets the date separator font | .set(dateSeparatorTextFont: UIFont) |
emptyStateTextFon | Sets the empty state font | .set(emptyStateTextFont: UIFont) |
errorStateTextFont | Sets the error state font | .set(errorStateTextFont: UIFont) |
callStatusTextColor | Sets the call status color | .set(callStatusTextColor: UIColor) |
callStatusIconTint | Sets the call status icon tint | .set(callStatusIconTint: UIColor) |
callTimeTextColor | Sets the call time color | .set(callTimeTextColor: UIColor) |
dateSeparatorTextColor | Sets the date separator color | .set(dateSeparatorTextColor: UIColor) |
missedCallIconTint | Sets the missed call icon tint | .set(missedCallIconTint: UIColor) |
outgoingCallIconTint | Sets the outgoing call icon tint | .set(outgoingCallIconTint: UIColor) |
incomingCallIconTint | Sets the incoming call icon tint | .set(incomingCallIconTint: UIColor) |
emptyStateTextColor | Sets the empty state color | .set(emptyStateTextColor: UIColor) |
errorStateTextColor | Sets the error state color | .set(errorStateTextColor: UIColor) |
infoIconTint | Sets the info icon tint | .set(infoIconTint: UIColor) |
Avatar
component in the CallLogs
Component, you can use the following code snippet. For further insights on Avatar
Styles refer
ListItemStyle
component in the CallLogs
Component, you can use the following code snippet. For further insights on ListItemStyle
Styles refer
CometChatCallLogs
. If a navigation controller is already in use, utilize the pushViewController function instead of directly presenting the view controller.Property | Description | Code |
---|---|---|
backButtonFont | Sets the font for the back button | .set(backButtonFont: UIFont?) |
backButtonIcon | Sets the icon for the back button | .set(backButtonIcon: UIImage) |
backButtonTint | Sets the tint for the back button | .set(backButtonTint: UIColor) |
backButtonTitle | Sets the title for the back button | .set(backButtonTitle: String?) |
backButtonTitleColor | Sets the title color for the back button | .set(backButtonTitleColor: UIColor) |
background | Sets the background | .set(background: [CGColor]?) |
borderColor | Sets the border color | .set(borderColor: UIColor) |
borderWidth | Sets the border width | .set(borderWidth: CGFloat) |
corner | Sets the corner style | .set(corner: CometChatCornerStyle) |
emptyStateText | Sets the text for empty state | .set(emptyStateText: String) |
emptyStateTextFont | Sets the font for empty state text | .set(emptyStateTextFont: UIFont) |
errorStateText | Sets the text for error state | .set(errorStateText: String) |
errorStateTextColor | Sets the text color for error state | .set(errorStateTextColor: UIColor) |
errorStateTextFont | Sets the font for error state text | .set(errorStateTextFont: UIFont) |
largeTitleColor | Sets the color for large title | .set(largeTitleColor: UIColor) |
largeTitleFont | Sets the font for large title | .set(largeTitleFont: UIFont) |
searchBackground | Sets the background for the search bar | .set(searchBackground: UIColor) |
searchBarHeight | Sets the height for the search bar | .set(searchBarHeight: CGFloat) |
searchBorderColor | Sets the border color for the search bar | .set(searchBorderColor: UIColor) |
searchCancelButtonFont | Sets the font for the search cancel button | .set(searchCancelButtonFont: UIFont) |
searchCancelButtonTint | Sets the tint for the search cancel button | .set(searchCancelButtonTint: UIColor) |
searchClearIcon | Sets the icon for the search clear button | .set(searchClearIcon: UIImage) |
searchCornerRadius | Sets the corner radius for the search bar | .set(searchCornerRadius: CometChatCornerStyle) |
searchIcon | Sets the icon for the search bar | .set(searchIcon: UIImage?) |
searchPlaceholder | Sets the placeholder for the search bar | .set(searchPlaceholder: String) |
searchTextColor | Sets the color for the search text | .set(searchTextColor: UIColor) |
searchTextFont | Sets the font for the search text | .set(searchTextFont: UIFont) |
title | Sets the title for the title bar | .set(title: String, mode: UINavigationItem.LargeTitleDisplayMode) |
titleColor | Sets the color for the title | .set(titleColor: UIColor) |
titleFont | Sets the font for the title | .set(titleFont: UIFont) |
hide errorText | Hides the error text | .hide(errorText: Bool) |
hide search | Hides the search bar | .hide(search: Bool) |
hide separator | Hides the separator | .hide(separator: Bool) |
.set(emptyView: UIView)
to match the empty view of your app.
Custom_Empty_State_GroupView
a UIView file.
CometChatCallLogs
. If a navigation controller is already in use, utilize the pushViewController function instead of directly presenting the view controller..set(errorView: UIView)
to match the error view of your app.
Custom_ErrorState_GroupView
and pass it inside the .set(errorView: UIView)
method.
CometChatCallLogs
. If a navigation controller is already in use, utilize the pushViewController function instead of directly presenting the view controller.CometChatCallLogs
, enhancing its interface with a personalized menu
for a more user-friendly experience.
CometChatCallLogs
. If a navigation controller is already in use, utilize the pushViewController function instead of directly presenting the view controller.