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.
import io.taptalk.taptalklive.TapTalkLive;
...
TapTalkLive.openTapTalkLiveView(YourActivity.this);
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.
import io.taptalk.taptalklive.TapTalkLive;
...
TapTalkLive.openCaseListView(YourActivity.this);
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.
import io.taptalk.taptalklive.TapTalkLive;
...
TTLCaseListFragment fragment = TapTalkLive.getCaseListFragment();
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.
import io.taptalk.taptalklive.TapTalkLive;
import io.taptalk.taptalklive.Listener.TTLCommonListener;
...
TapTalkLive.openCaseChatRoom(YourActivity.this, XC_ROOM_ID, new TTLCommonListener() {
@Override
public void onSuccess(String successMessage) {
// Successfully opened chat room
}
@Override
public void onError(String errorCode, String errorMessage) {
}
});
Last updated
Was this helpful?