UI Customizations
Channelize.io Android UI SDK allows you to achieve customizations in the pre-built UI screens. Customization methods are defined in the ChannelizeUIConfig
class. Find below the provided methods.
Enable Forward
Determines whether to have the forward message option in the conversation screen.
* @param enableForward Set it true, if you want to provide the forward message capabilities to your users. Set it false, if you want to disable this functionality.
enableForward(boolean enableForward)
Enable Quote/Reply Message
Determines whether to have the quote/reply message option in the conversation screen.
* @param enableQuoteMessage Set it true, if you want to provide the quote/reply message capabilities to your users. Set it false, if you want to disable this functionality.
enableQuoteMessage(boolean enableQuoteMessage)
Enable Search
Determines whether you want to provide search capabilities for the users or not.
* @param enableSearch Set it true, if you want to provide the search functionality for users. Set it false, if you want to disable this functionality.
enableSearch(boolean enableSearch)
Enable User's Last Seen
Determines whether to provide the last seen indicator on the conversation screen or not. In the case of 1-to-1 conversation, if another user is offline then the user's last seen status is displayed.
* @param enableUserLastSeen Set true, if you want to show the last seen status of the users otherwise set it false.
enableUserLastSeen(boolean enableUserLastSeen)
Enable User's Online Indicator
Determines whether to display the online presence of the user in Recent, Contacts and Conversation Screen.
* @param enableUserOnlineIndicator Set true, if you want to show the online presence indicator for the users otherwise set it false.
enableUserOnlineIndicator(boolean enableUserOnlineIndicator)
Enable Voice Recorder
Determines whether to provide voice recording functionality for users.
* @param enableVoiceRecorder Set true, if you want to provide voice recording capabilities for the users otherwise set it false.
enableVoiceRecorder(boolean enableVoiceRecorder)
To use this feature add below permissions into your AndroidManifest.xml
file.
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
Enable Message Attachment
Determines whether to provide the functionality to send attachments in the conversation screen.
* @param enableMessageAttachment Set true, if you want to allow sending attachments otherwise set it false.
enableMessageAttachment(boolean enableMessageAttachment)
Enable Recent Chat Actions
Determines whether to provide the long-press actions on Recent Conversations Screen.
* @param enableRecentChatOptions Set true, if you want to provide recent conversation screen actions otherwise set it false.
enableRecentChatOptions(boolean enableRecentChatOptions)
Show Unread Message Count in Recent Conversations
Determines whether to provide the badge count view that is displayed when there is an unread message in the recent conversations screen.
* @param showUnreadMsgCountInRecentChat Set true, if you want to show unread messages badge count otherwise set it false.
showUnreadMsgCountInRecentChat(boolean showUnreadMsgCountInRecentChat)
Show Date in Conversation Screen
Determines whether to allow showcasing date on top of the conversations screen.
* @param showDateHeader Set true, if you want to show the date on the top of the conversations screen otherwise set it false.
showDateHeader(boolean showDateHeader)
Show Typing Indicator
Determines whether to show typing indicator on the conversation and recent screen.
* @param showTypingIndicator Set true, if you want to show the typing indicator otherwise set it false.
showTypingIndicator(boolean showTypingIndicator)
Show Message Status
Determines whether to show message status to the message owner/sender. Available message statuses are Sent and Delivered.
* @param showMessageStatus Set true, if you want to show the message status otherwise set it false.
showMessageStatus(boolean showMessageStatus)
Show Online Users
Determines whether to show a list of online users in the contacts screen.
* @param showOnlineUsers Set true, if you want to show the list of online users otherwise set it false.
showOnlineUsers(boolean showOnlineUsers)
Show Group Members Count
Determines whether to show the count of the total number of group members in the conversations screen or not.
* @param showGroupMembersCountInHeader Set true, if you want to show the count of the total number of group members otherwise set it false.
showGroupMembersCountInHeader(boolean showGroupMembersCountInHeader)
Max Image File Size
It allows you to define the maximum size of an image that can be shared.
* @param maxImageFileSize Size of the image file in MB. (Default: 5MB)
maxImageFileSize(int maxImageFileSize)
Max Audio File Size
It allows you to define the maximum size of an audio file that can be shared.
* @param maxAudioFileSize Size of the audio file in MB. (Default: 25MB)
maxAudioFileSize(int maxAudioFileSize)
Max Video File Size
It allows you to define the maximum size of a video file that can be shared.
* @param maxVideoFileSize Size of the video file in MB. (Default: 25MB)
maxVideoFileSize(int maxVideoFileSize)
Send Message Background Color
It allows you to set the background color of the message compose box on the conversation screen.
* @param sentMessageBgColor The color which you want to set as the background color.
sentMessageBgColor(@ColorInt int sentMessageBgColor)
Sent Message Background Color
You can set the background color of the received message block on the conversation screen.
* @param receivedMessageBgColor The color which you want to set as the background color.
receivedMessageBgColor(@ColorInt int receivedMessageBgColor)
Sent Message Text Color
It allows you to set the text color of the sent message on the conversation screen.
* @param sentMessageTextColor The color which you want to set as the text color.
sentMessageTextColor(@ColorInt int sentMessageTextColor)
Received Message Text Color
It allows you to set the text color of the received message on the conversation screen.
* @param receivedMessageTextColor The color which you want to set as the text color.
receivedMessageTextColor(@ColorInt int receivedMessageTextColor)
Message Text Size
It allows you to define the font size of messages text on the conversation screen.
* @param messageTextSize The font size of the message text.
messageTextSize(@DimenRes int messageTextSize)
Stickers Block Size
It allows you the define the size of the Stickers thumbnail block on the conversation screen.
* @param stickerBlockSize Size of the block.
stickerBlockSize(@DimenRes int stickerBlockSize)
GIF Block Size
It allows you the define the size of the GIFs thumbnail block on the conversation screen.
* @param gifBlockSize Size of the block.
gifBlockSize(@DimenRes int gifBlockSize)
Location Block Size
It allows you the define the size of the Location thumbnail block on the conversation screen.
* @param locationBlockSize Size of the block.
locationBlockSize(@DimenRes int locationBlockSize)
Image Block Size
It allows you the define the size of the Image thumbnail block on the conversation screen.
* @param imageBlockSize Size of the block.
imageBlockSize(@DimenRes int imageBlockSize)
Video Block Size
It allows you the define the size of the Video thumbnail block on the conversation screen.
* @param videoBlockSize Size of the block.
videoBlockSize(@DimenRes int videoBlockSize)
Enable Calling feature
Determine whether to have the calling feature. This will only work when you've used the Channelize.io Android Call SDK.
* @param enableCall Set true, if you want to show the calling screen and its options otherwise set it false.
enableCall(boolean enableCall)
Add below permissions in AndroidManifest.xml
file to having calling feature.
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.VIBRATE" />