If you are using the default interface from TapTalk.io UI implementation type, you can choose to enable or disable the available chat features that we provided by using the TapUI class.
Show / Hide Action Bar
By default, TapTalk activities will follow your project's app theme to show/hide action bar in activities, but you can show or hide action bar in TapTalk activities using the following methods:
• Calling setAllTapTalkActivityActionBarEnabled will enable/disable action bar in all TapTalk activities.
• Calling setTapTalkChatActivityActionBarEnabled will only enable/disable action bar in TapTalk default chat room (TapUIChatActivity).
• Setting setAllTapTalkActivityActionBarEnabled to true and setTapTalkChatActivityActionBarEnabled to false will disable action bar in TapTalk default chat room, but enable it in other TapTalk activities, and vice versa.
Enable / Disable Message Read Status
You can choose to enable or disable read status of messages in room list and chat room. When disabled, read messages will show as delivered instead. Read status is enabled by default.
The report button is hidden by default, and the report button in group profile currently does nothing by default when pressed, its action needs to be handled manually using TapUIChatProfileListener.
Customize Star Message Menu
To enable or disable star message menu in chat room and chat profile page, you may call setStarMessageMenuEnabled() method from TapUI class. This feature is enabled by default.
User is able to swipe an item in the room list page to quickly complete some actions. To enable/disable this feature, you may call the following methods below.
// Enable/disable mark as read swipe menu actionTapUI.getInstance().setMarkAsReadRoomListSwipeMenuEnabled(ENABLED);// Enable/disable mark as unread swipe menu actionTapUI.getInstance().setMarkAsUnreadRoomListSwipeMenuEnabled(ENABLED);// Enable/disable pin and unpin swipe menu actionTapUI.getInstance().setPinRoomListSwipeMenuEnabled(ENABLED);// Enable/disable mute and unmute swipe menu actionTapUI.getInstance().setMuteRoomListSwipeMenuEnabled(ENABLED);// Enable/disable delete chat swipe menu actionTapUI.getInstance().setDeleteRoomListSwipeMenuEnabled(ENABLED);
// Enable/disable mark as read swipe menu actionTapUI.getInstance().setMarkAsReadRoomListSwipeMenuEnabled(ENABLED)// Enable/disable mark as unread swipe menu actionTapUI.getInstance().setMarkAsUnreadRoomListSwipeMenuEnabled(ENABLED)// Enable/disable pin and unpin swipe menu actionTapUI.getInstance().setPinRoomListSwipeMenuEnabled(ENABLED)// Enable/disable mute and unmute swipe menu actionTapUI.getInstance().setMuteRoomListSwipeMenuEnabled(ENABLED)// Enable/disable delete chat swipe menu actionTapUI.getInstance().setDeleteRoomListSwipeMenuEnabled(ENABLED)
Customize Saved Messages Feature
To enable or disable Saved Messages feature, call the setSavedMessagesMenuEnabled() from TapUI. This feature is enabled by default. Disabling this feature when the user has previously used it will not remove the user's existing messages that has been sent to the Saved Messages chat room.
To enable or disable pin message menu in chat room, you may call setPinMessageMenuEnabled() method from TapUI class. This feature is enabled by default.
To choose whether to open message urls with in-app browser or the device's browser app, you may call setOpenLinkWithExternalBrowserEnabled() method from TapUI class. TapTalk.io's in-app browser will be used by default.