navigationBar), search (search-bar), background, and a container to embed a list view, such as CometChatConversationList, CometChatGroupList, CometChatUserList,CometChatCallList.
Methods
Background: The background is aUIView which is present in the backdrop for CometChatListBase. You can modify the background using the below methods:
1. Title: The title is a
UILabel which specifies a title for CometChatListBase. You will be able to modify the title using the below methods:
2. Search: The search is a
UISearchController, which is responsible for displaying and handling events for the search bar in CometChatListBase. You can modify the search bar using the below methods:
3. Back: The back button is a
UIButton which the user can show if he wishes to. This button can be modified using the below methods:
4. Container__: The container is a UIView which helps to embed any custom view.
[Props required]
Usage(Not required)
- Swift
Events
CometChatListBase is having a listener/delegate named CometChatListBaseDelegate which will provide the events for search-bar and the back button present in the CometChatListBase__.
__× MethodDescriptiononSearch(state: SearchState, text: String)Fires when the search bar is active. It returns the text the user has entered in the search bar.onBack()Fires when the close button is visible and the user taps on it
Usage (change required specific to listbase)
- Swift