This guide helps you to enable/disable features present in the UI Kit. In order to achieve this, you need to refer to the UIKitSettings class present in the UI Kit Library.
  • UIKitSettings class variables have to be changed in the class file located at CometChatWorkspace/src/util. By default, all settings will be enabled.
  • For advanced level customization, you can modify the source code of the UI Kit as per your requirement.

Tab bar settings

Class variablesDescription
chats = trueHide/Show Recent Chats Value could be true or false
users = trueHide/Show Users tab Value could be true or false
groups = trueHide/Show Groups tab Value could be true or false
userSettings = trueHide/Show User Information tab Value could be true or false
tabs = [“chats”, “users”, “groups”, “calls”, “settings”]Shuffle or re-arrange tabs

Recent chat settings

Class variablesDescription
unreadCount = trueShow the unread count in the chats list Value could be true or false
chatListMode = “USERS_AND_GROUPS”Show user, group, or both chats Values could be “USERS”, “GROUPS”, “USERS_AND_ GROUPS”

Call settings

Class variablesDescription
userAudioCall = trueEnable audio call for user Value could be true or false
groupAudioCall = trueEnable audio call for group Value could be true or false
userVideoCall = trueEnable video call for user Value could be true or false
groupVideoCall = trueEnable video call for group Value could be true or false
enableSoundForCalls = trueEnable sound for calls Value could be true or false
callNotifications = trueShow action messages for calls. Value could be true or false

User settings

Class variablesDescription
userListMode = “ALL”Show all users/friends Values could be “ALL”, “FRIENDS”, “NONE”
showUserPresence = trueShow user presence Value could be true or false
blockUser = trueAllow block/unblock user Value could be true or false
searchUsers = trueAllow search in the user list Value could be true or false

Group settings

Class variablesDescription
groupCreation = trueAllow creating group Value could be true or false
joinOrLeaveGroup = trueAllow joining or leaving a group Value could be true or false
allowDeleteGroup = trueAllow deleting group Value could be true or false
viewGroupMembers = trueAllow viewing group members Value could be true or false
allowAddMembers = trueAllow adding group member Value could be true or false
allowModeratorToDeleteMemberMessages = trueAllow moderator to delete messages of participants Value could be true or false
kickMember=trueAllow user to kick group members Value could be true or false
banMember = trueAllow user to ban group members Value could be true or false
allowPromoteDemoteMembers = trueAllow user to promote or demote members Value could be true or false
joinLeaveNotifications = trueShow action messages for groups Value could be true or false
searchGroups = trueAllow search in the group list Value could be true or false
messageInPrivate = trueEnable option to send message to group members in private Value could be true or false

Message settings

Class variablesDescription
sendMessageInOneOnOne = trueAllow sending 1-1 message Value could be true or false
sendMessageInGroup = trueAllow sending message in groups Value could be true or false
sendPhotoVideos = trueAllow sending photos & videos Value could be true or false
sendFiles = trueAllow sending files & documents Value could be true or false
sendEmojis = trueAllow sending emojis Value could be true or false
sendEmojisInLargerSize = trueAllow sending emojis in larger size Value could be true or false
sendTypingIndicator = trueAllow sending/receiving typing indicator Value could be true or false
editMessage = trueAllow editing a message Value could be true or false
deleteMessage = trueAllow deleting a message Value could be true or false
threadedChats = trueAllow threaded replies on a message Value could be true or false
sendLiveReaction = trueAllow sharing live reaction Value could be true or false
viewShareMedia = trueAllow shared media Value could be true or false
showReadDeliveryReceipts = trueAllow read/delivery receipts for messages Value could be true or false
polls = trueAllow creating a poll (Poll Extension must be enabled from Dashboard) Value could be true or false
enableSoundForMessages = trueEnable sound for incoming/outgoing messages Value could be true or false
sendMessageReaction = trueEnable reactions for messages Value could be true or false
collaborativeDocument = trueEnable collaborative document (Collaborative document Extension must be enabled from Dashboard) Value could be true or false
collaborativeWhiteboard = trueEnable collaborative whiteboard (Collaborative whiteboard Extension must be enabled from Dashboard) Value could be true or false
messageTranslation = trueEnable message translation (Message translation Extension must be enabled from Dashboard) Value could be true or false
sendStickers = trueAllow sending stickers(Stickers Extension must be enabled from Dashboard) Value could be true or false
smartReplies = trueEnable smart replies(Smart Reply Extension must be enabled from Dashboard) Value could be true or false
hideDeletedMessages = falseEnable hiding messages Value could be true or false