Skip to main content
Version: v3

Customize UI Kit

This guide helps you to customize, modify, and enable/disable features present in UI Kit.

note

CometChat SDK & UI Kit both need to be configured before starting the customization in UI Kit.

:::

To Modify and customize UI Kit, you need to refer to the UIKitSettings class present in the UI Kit Library. You will be easily able to modify the color, enable/disable some of the features which you won't require in your app.

important
  • UI Kit Settings must be called before launching any UI Screen or UI Unified. By default, all settings will be enabled.
  • For advanced level customization, you can modify the source code of the library as per your requirement.

1. Color Settings

Sr NoDescriptionCode SnippetSettings
1.Modify primary colourUIKitSettings.color = #F3F3F3Requires Hex value of color as String

Ex: "#F3F3F3"

2. Tab bar settings

Sr NoDescriptionCode SnippetSettings
1.Hide/Show recents chats tabUIKitSettings.conversations = trueYou can show it using true or hide it using false.
2.Hide/Show calls tabUIKitSettings.calls = trueYou can show it using true or hide it using false.
3.Hide/Show users tabUIKitSettings.users = trueYou can show it using true or hide it using false.
4.Hide/Show groups tabUIKitSettings.groups = trueYou can show it using true or hide it using false.
5.Hide/Show user information tabUIKitSettings.userSettings = trueYou can show it using true or hide it using false.

3. Recent chat settings

Sr NoDescriptionCode SnippetSettings
1.Show unread countUIKitSettings.unreadCount = trueYou can show it using true or hide it using false.
2.Show search bar in chatsUIKitSettings.searchChats = trueYou can show it using true or hide it using false.
3.Show all users/groups or bothUIKitSettings.chatListMode = true'You can show all users and groups using true or hide users and group using false.

4. Call settings

DescriptionCode SnippetSettings
Enable audio call for userUIKitSettings.userAudioCall = trueYou can show it using true or hide it using false.
Enable audio call for groupUIKitSettings.groupAudioCall = trueYou can show it using true or hide it using false.
Enable video call for userUIKitSettings.userVideoCall = trueYou can show it using true or hide it using false.
Enable video call for groupUIKitSettings.groupVideoCall = trueYou can show it using true or hide it using false.
Enable sound for callsUIKitSettings.enableSoundForCalls = trueYou can show it using true or hide it using false.

5. User settings

Sr NoDescriptionCode SnippetSettings
1.Show all users/friendsUIKitSettings.userInMode = trueYou can show it using true or hide it using false.
2.Show user presenceUIKitSettings.showUserPresence = trueYou can show it using true or hide it using false.
3.Show block userUIKitSettings.blockUser = trueYou can show it using true or hide it using false.
4.Show search userUIKitSettings.searchUsers = trueYou can show it using true or hide it using false.
5.Show view profileUIKitSettings.viewProfile = trueYou can show it using true or hide it using false.

6. Group settings

Sr NoDescriptionCode SnippetSettings
1.Show create groupUIKitSettings.groupCreation = trueYou can show it using true or hide it using false.
2.Show join or leave groupUIKitSettings.joinOrLeaveGroup = trueYou can show it using true or hide it using false.
3.Show delete groupUIKitSettings.allowDeleteGroup = trueYou can show it using true or hide it using false.
4.Show group membersUIKitSettings.viewGroupMembers = trueYou can show it using true or hide it using false.
5.Show add memberUIKitSettings.allowAddMembers = trueYou can show it using true or hide it using false.
6.Allow moderator to delete messages of participantsUIKitSettings.allowModeratorToDeleteMemberMessages = trueYou can show it using true or hide it using false.
7.Allow user to kick membersUIKitSettings.kickMember = trueYou can show it using true or hide it using false.
8.Allow user to ban membersUIKitSettings.banMember = trueYou can show it using true or hide it using false.
9.Allow user to promote or demote membersUIKitSettings.allowPromoteDemoteMembers = trueYou can show it using true or hide it using false.
10.Show public group option for creating groups.UIKitSettings.publicGroup = trueYou can show it using true or hide it using false.
11.Show private group option for creating groups.UIKitSettings.privateGroup = trueYou can show it using true or hide it using false.
12.Show password protected group option for creating groups.UIKitSettings.passwordGroup = trueYou can show it using true or hide it using false.
13.Show search groupsUIKitSettings.searchGroups = trueYou can show it using true or hide it using false.
14.Enable message in private from GroupsUIKitSettings.messageInPrivate = trueYou can show it using true or hide it using false.
15.Enable message receipt information from GroupsUIKitSettings.messageInformation = trueYou can show it using true or hide it using false.

7. Message settings

Sr NoDescriptionCode SnippetSettings
1.Show message composer for one-on-one chatUIKitSettings.sendMessageInOneOnOne = trueYou can show it using true or hide it using false.
2.Show message composer for group chatUIKitSettings.sendMessageInGroup = trueYou can show it using true or hide it using false.
3Show send text messageUIKitSettings.sendTextMessage = trueYou can show it using true or hide it using false.
4.Show send photos & videosUIKitSettings.sendPhotoVideos = trueYou can show it using true or hide it using false.
5.Show send files & documentsUIKitSettings.sendFiles = trueYou can show it using true or hide it using false.
6.Show send voice notesUIKitSettings.sendVoiceNotes = trueYou can show it using true or hide it using false.
7.Show send emojis from keyboardUIKitSettings.sendEmojis = trueYou can show it using true or hide it using false.
8.Show send emojis in Larger SizeUIKitSettings.sendEmojisInLargerSize = trueYou can show it using true or hide it using false.
9.Show send stickersUIKitSettings.sendStickers = trueYou can show it using true or hide it using false.
10.Send typing indicatorUIKitSettings.sendTypingIndicator = trueYou can show it using true or hide it using false.
11.Send message reactionUIKitSettings.sendMessageReaction = trueYou can show it using true or hide it using false.
12.Send live reactionUIKitSettings.sendLiveReaction = trueYou can show it using true or hide it using false.
13..Ability to edit the messageUIKitSettings.editMessage = trueYou can show it using true or hide it using false.
14.Ability to delete the messageUIKitSettings.deleteMessage = trueYou can show it using true or hide it using false.
15.Ability to share, copy & forward the messageUIKitSettings.shareCopyForwardMessage = trueYou can show it using true or hide it using false.
16.Ability to reply on messageUIKitSettings.replyToMessage = trueYou can show it using true or hide it using false.
17.Ability to start new thread for messageUIKitSettings.threadedChats = trueYou can show it using true or hide it using false.
18.Ability to share live reactionUIKitSettings.shareLiveReaction = trueYou can show it using true or hide it using false.
19.Ability to share your locationUIKitSettings.shareLocation = trueYou can show it using true or hide it using false.
20.Show shared mediaUIKitSettings.viewShareMedia = trueYou can show it using true or hide it using false.
21.Show read/delivery receipts for MessagesUIKitSettings.showReadDeliveryReceipts = trueYou can show it using true or hide it using false.
22.Ability to create poll (Poll Extension must be enabled from Dashboard)UIKitSettings.polls = trueYou can show it using true or hide it using false.
23.Enable sound for MessagesUIKitSettings.enableSoundForMessages = trueYou can show it using true or hide it using false.
24.Enable Message ReactionsUIKitSettings.messageReaction = trueYou can show it using true or hide it using false.
20.Enable Collaborative DocumentUIKitSettings.collaborativeDocument = trueYou can show it using true or hide it using false.
25.Enable Collaborative WhiteboardUIKitSettings.collaborativeWhiteboard = trueYou can show it using true or hide it using false.
22.Enable Message TranslationUIKitSettings.messageTranslation = trueYou can show it using true or hide it using false.
26.Hide/show delete messagesUIKitSettings.hideDeletedMessages = trueYou can show it using true or hide it using false.
27.Enable Message HistoryUIKitSettings.messageHistory = trueYou can show it using true or hide it using false.
28.Show smart replies

(Smart Replies Extension must be enabled from Dashboard)
UIKitSettings.smartReplies = trueYou can show it using true or hide it using false.