
CometChat SDK & UI Kit both need to be configured before starting the customization in UI Kit.
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.
| Description | Code Snippet | Settings | 
|---|---|---|
| Modify primary colour | UIKitSettings.setColor(String color) | Requires Hex value of color as String Ex: “#F3F3F3” | 
2. Tab bar settings
| Description | Code Snippet | Settings | 
|---|---|---|
| Hide/Show recents chats tab | UIKitSettings.conversations(true) | You can show it using trueor hide it usingfalse. | 
| Hide/Show calls tab | UIKitSettingscalls(true) | You can show it using trueor hide it usingfalse. | 
| Hide/Show users tab | UIKitSettings.users(true) | You can show it using trueor hide it usingfalse. | 
| Hide/Show groups tab | UIKitSettings.groups(true) | You can show it using trueor hide it usingfalse. | 
| Hide/Show user information tab | UIKitSettings.userSettings(true) | You can show it using trueor hide it usingfalse. | 
3. Call settings
| Description | Code Snippet | Settings | 
|---|---|---|
| Enable audio call for user | UIKitSettings.userAudioCall(true) | You can enable it using trueor disable it usingfalse. | 
| Enable video call for user | UIKitSettings.userVideoCall(true) | You can enable it using trueor disable it usingfalse. | 
| Enable video call for group | UIKitSettings.groupVideoCall(true) | You can enable it using trueor disable it usingfalse. | 
| Enable sound for calls | UIKitSettings.enableSoundForCalls(true) | You can enable it using trueor disable it usingfalse. | 
| Show action messages for calls. | UIKitSettings.callNotification(true) | You can show it using trueor hide it usingfalse. | 
4. User settings
| Description | Code Snippet | Settings | 
|---|---|---|
| Show users-conversations/group-conversation only | UIKitSettings.setConversationsMode(ConversationMode conversationMode) | You can use below constants. - ConversationMode.ALL_CHATS- ConversationMode.GROUP- ConversationMode.USER | 
| Show all-users/friends | UIKitSettings.setUsersMode(UserMode mode) | You can use below constants. - UserMode.ALL_USER- UserMode.FRIENDS` | 
| Show all-groups/password-protected groups/public-groups | UIKitSettings.setGroupsMode(GroupMode mode) | You can use below constants. - GroupMode.ALL_GROUPS- GroupMode.PUBLIC_GROUP` | 
| Show user presence | UIKitSettings.userPresence(true) | You can show it using trueor hide it usingfalse. | 
| Allow Users to block | UIKitSettings. blockUser(true) | You can allow it using trueor disallow it usingfalse. | 
5. Group settings
| Description | Code Snippet | Settings | 
|---|---|---|
| Show create group | UIKitSettings.groupCreate(true) | You can show it using trueor hide it usingfalse. | 
| Show join or leave group | UIKitSettings. joinOrLeaveGroup(true) | You can show it using trueor hide it usingfalse. | 
| Show delete group | UIKitSettings.allowDeleteGroups(true) | You can show it using trueor hide it usingfalse. | 
| Show group members | UIKitSettings.viewGroupMembers(true) | You can show it using trueor hide it usingfalse. | 
| Show add member | UIKitSettings.allowAddMembers(true) | You can show it using trueor hide it usingfalse. | 
| Allow moderator to delete messages of participants | UIKitSettings.allowModeratorToDeleteMemberMessages(true) | You can allow it using trueor disallow it usingfalse. | 
| Allow user to kick members | UIKitSettings.kickMember(true) | You can allow it using trueor disallow it usingfalse. | 
| Allow user to ban members | UIKitSettings.banMember(true) | You can allow it using trueor disallow it usingfalse. | 
| Allow user to promote or demote members | UIKitSettings.allowPromoteDemoteMembers(true) | You can allow it using trueor disallow it usingfalse. | 
| Show group action messages in groups. | UIKitSettings.groupNotifications(true) | You can show it using trueor hide it usingfalse. | 
6. Message settings
| Description | Code Snippet | Settings | 
|---|---|---|
| Allow send message | UIKitSettings.allowSendingMessages(true) | You can allow it using trueor disallow it usingfalse. | 
| Allow send photos & videos | UIKitSettings.sendPhotosVideo(true) | You can allow it using trueor disallow it usingfalse. | 
| Allow send files & documents | UIKitSettings.sendFiles(true) | You can allow it using trueor disallow it usingfalse. | 
| Allow send voice notes | UIKitSettings.sendVoiceNotes(true) | You can allow it using trueor disallow it usingfalse. | 
| Allow send emojis from keyboard | UIKitSettings.sendEmojis(true) | You can allow it using trueor disallow it usingfalse. | 
| Allow send emojis in Larger Size | UIKitSettings.sendEmojisInLargeSize(true) | You can allow it using trueor disallow it usingfalse. | 
| Show typing indicator | UIKitSettings.sendTypingIndicators(true) | You can show it using trueor hide it usingfalse. | 
| Ability to edit the message | UIKitSettings.editMessage(true) | You can allow it using trueor disallow it usingfalse. | 
| Ability to delete the message | UIKitSettings.deleteMessage(true) | You can allow it using trueor disallow it usingfalse. | 
| Ability to share, copy & forward the message | UIKitSettings.shareCopyForwardMessage(true) | You can allow it using trueor disallow it usingfalse. | 
| Ability to reply on message | UIKitSettings.replyingToMessage(true) | You can allow it using trueor disallow it usingfalse. | 
| Ability to start new thread for message | UIKitSettings.threadedChats(true) | You can allow it using trueor disallow it usingfalse. | 
| Ability to share live reaction | UIKitSettings.sendLiveReaction(true) | You can enable it using trueor disable it usingfalse. | 
| Ability to share your location | UIKitSettings.shareLocation(true) | You can allow it using trueor disallow it usingfalse. | 
| Show shared media | UIKitSettings.viewSharedMedia(true) | You can show it using trueor hide it usingfalse. | 
| Show read/delivery receipts for Messages | UIKitSettings.showReadDeliveryReceipts(true) | You can show it using trueor hide it usingfalse. | 
| Ability to create poll (Poll Extension must be enabled from Dashboard) | UIKitSettings.sendPolls(true) | You can allow it using trueor disallow it usingfalse. | 
| Enable Message Reactions | UIKitSettings.sendMessageReaction(true) | You can enable it using trueor disable it usingfalse. | 
| Enable Collaborative Document | UIKitSettings.collaborativeWhiteBoard(true) | You can enable it using trueor disable it usingfalse. | 
| Enable Collaborative Whiteboard | UIKitSettings.collaborativeDocument(true) | You can enable it using trueor disable it usingfalse. |