Navigate Live Chat UI
You may optionally navigate through TapTalk.io Omnichannel Live Chat's UI, such as case list and chat room, using the following methods:
Open TapTalk Omnichannel View
To open TapTalkLive's view UI for your application, you can use the openTapTalkLiveView
method from the TapTalkLive class. This will open a homepage activity containing a list of available channels, the user's latest case, and QnA path.
openTapTalkLiveView
will return true
if opening the view is successful, and will return false
if it fails due to incomplete initialization. TapTalkLive initialization might not be completed if the device is not connected to internet or an incorrect APP_KEY_SECRET
parameter was provided.
Open Case List View
You can open the user's case list page by calling openCaseListView
. If no user is authenticated, create case form will be opened instead.
Get Case List Fragment
You may optionally attach TapTalk Omnichannel's case list fragment to your own activity. To obtain the chat list fragment instance, use the getCaseListFragment
method.
getCaseListFragment
will return a TTLCaseListFragment
instance.
Open Existing Case's Chat Room
To use this method, you need to first finish authentication process.
Once authenticated, you can open a chat room from one the user's case by calling openCaseChatRoom
, providing the context and XC Room ID. You may obtain XC Room ID from one of the active user's case list, or by creating a new case.
Parameters
CONTEXT
: (Context) Context or your current Activity
XC_ROOM_ID
: (String) XC Room ID of the user's case, can be obtained from getUserCaseList
or createNewCase
(TTLCaseModel.tapTalkXCRoomID)
Last updated