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.
Important
  • 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 Value 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 Value 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 alue 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 VariableDescription
sendMessageInOneOnOneAllow sending 1-1 message. Value could be true or false.
sendMessageInGroupAllow sending message in groups. Value could be true or false.
sendPhotoVideosAllow sending photos & videos. Value could be true or false.
sendFilesAllow sending files & documents. Value could be true or false.
sendEmojisAllow sending emojis. Value could be true or false.
sendEmojisInLargerSizeAllow sending emojis in larger size. Value could be true or false.
sendTypingIndicatorAllow sending/receiving typing indicator. Value could be true or false.
editMessageAllow editing a message. Value could be true or false.
deleteMessageAllow deleting a message. Value could be true or false.
threadedChatsAllow threaded replies on a message. Value could be true or false.
sendLiveReactionAllow sharing live reaction. Value could be true or false.
viewShareMediaAllow shared media. Value could be true or false.
showReadDeliveryReceiptsAllow read/delivery receipts for messages. Value could be true or false.
pollsAllow creating a poll (Poll Extension must be enabled from Dashboard). Value could be true or false.
enableSoundForMessagesEnable sound for incoming/outgoing messages. Value could be true or false.
sendMessageReactionEnable reactions for messages. Value could be true or false.
collaborativeDocumentEnable collaborative document (Collaborative document Extension must be enabled from Dashboard). Value could be true or false.
collaborativeWhiteboardEnable collaborative whiteboard (Collaborative whiteboard Extension must be enabled from Dashboard). Value could be true or false.
messageTranslationEnable message translation (Message translation Extension must be enabled from Dashboard). Value could be true or false.
sendStickersAllow sending stickers (Stickers Extension must be enabled from Dashboard). Value could be true or false.
smartRepliesEnable smart replies (Smart Reply Extension must be enabled from Dashboard). Value could be true or false.
hideDeletedMessagesEnable hiding messages. Value could be true or false.