Customize Chat Features
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.

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.
Objective-C
1
[[TapUI sharedInstance] setHideReadStatus:ENABLED];
Copied!

Enable / Disable Add Contact Feature

You can also choose to enable or disable the user from adding another user as TapTalk contact.
Objective-C
1
[[TapUI sharedInstance] setAddContactEnabled:ENABLED];
Copied!
Note: Disabling add contact feature will also hide the following:
• Add to Contacts button in chat room
• Add to Contacts button in user profile
• New Contact button in start new chat page
• Scan QR Code button in start new chat page

Customize Room List Features

The following features in TapTalk default room list can be customized:
• Close Room List Button
• Search Chat
• My Account
• Start New Chat
Objective-C
1
[[TapUI sharedInstance] setCloseRoomListButtonVisible:VISIBLE];
2
3
[[TapUI sharedInstance] setSearchBarInRoomListVisible:VISIBLE];
4
5
[[TapUI sharedInstance] setMyAccountButtonInRoomListVisible:VISIBLE];
6
7
[[TapUI sharedInstance] setNewChatButtonInRoomListVisible:VISIBLE];
Copied!

Customize Chat Room Features

The following features in TapTalk default chat room can be customized:
• User / Group Profile Button
• Add to Contacts
• Mention Username
Objective-C
1
[[TapUI sharedInstance] setProfileButtonInChatRoomVisible:VISIBLE];
2
3
[[TapUI sharedInstance] setAddToContactsButtonInChatRoomVisible:VISIBLE];
4
5
[[TapUI sharedInstance] setMentionUsernameEnabled:ENABLED];
Copied!

Customize Chat Room Attachments

You can choose to enable or disable message attachments in chat room as follows:
• Documents
• Camera
• Gallery
• Location (requires Google Places API Key)
Objective-C
1
[[TapUI sharedInstance] setDocumentAttachmentEnabled:ENABLED];
2
3
[[TapUI sharedInstance] setCameraAttachmentEnabled:ENABLED];
4
5
[[TapUI sharedInstance] setGalleryAttachmentEnabled:ENABLED];
6
7
[[TapUI sharedInstance] setLocationAttachmentEnabled:ENABLED];
Copied!
Note: Location attachment will be disabled by default when Google Places API Key is not set from TapTalk class.

Customize Chat Bubble Long Press Action

You can choose to enable or disable long press action menus in chat room as follows:
• Reply Message
• Forward Message
• Delete Message
• Save Media to Gallery
• Save Document
• Open Link
• Compose Email
• Dial Number
• Send SMS
• View Profile
• Send Message
Objective-C
1
[[TapUI sharedInstance] setReplyMessageMenuEnabled:ENABLED];
2
3
[[TapUI sharedInstance] setForwardMessageMenuEnabled:ENABLED];
4
5
[[TapUI sharedInstance] setDeleteMessageMenuEnabled:ENABLED];
6
7
[[TapUI sharedInstance] setSaveMediaToGalleryMenuEnabled:ENABLED];
8
9
[[TapUI sharedInstance] setSaveDocumentMenuEnabled:ENABLED];
10
11
[[TapUI sharedInstance] setOpenLinkMenuEnabled:ENABLED];
12
13
[[TapUI sharedInstance] setComposeEmailMenuEnabled:ENABLED];
14
15
[[TapUI sharedInstance] setDialNumberMenuEnabled:ENABLED];
16
17
[[TapUI sharedInstance] setSendSMSMenuEnabled:ENABLED];
18
19
[[TapUI sharedInstance] setViewProfileMenuEnabled:ENABLED];
20
21
[[TapUI sharedInstance] setSendMessageMenuEnabled:ENABLED];
Copied!

Customize Start New Chat Features

If setNewChatButtonInRoomListVisible is enabled (default), you can also customize the availability of its contents:
• Add New Contact (add contact by search)
• Scan QR Code (add contact by scanning QR code)
• Create new group
Objective-C
1
[[TapUI sharedInstance] setNewContactMenuButtonVisible:VISIBLE];
2
3
[[TapUI sharedInstance] setScanQRMenuButtonVisible:VISIBLE];
4
5
[[TapUI sharedInstance] setNewGroupMenuButtonVisible:VISIBLE];
Copied!

Customize My Account Page

You can choose to show or hide the logout button in TapTalk My Account page.
Objective-C
1
[[TapUI sharedInstance] setLogoutButtonVisible:VISIBLE];
Copied!

Customize User Profile Page

You can choose to show or hide the add to contacts button in TapTalk Chat Profile page.
Objective-C
1
[[TapUI sharedInstance] setAddToContactsButtonInChatProfileVisible:VISIBLE];
Copied!
Last modified 8mo ago