public class UnbluConversationInterceptor extends java.lang.Object implements IConversationInterceptor
IConversationInterceptor
.
This will return by default UnbluExternalLinkHandleAction.OPEN
when IConversationInterceptor.onConversationOpenExternalLinkRequest(android.net.Uri)
is called.
This will also do nothing when IConversationInterceptor.onNewConversation(ConversationType, String, IUnbluApiSuccessCallback)
is called.
Modifier and Type | Method and Description |
---|---|
static UnbluConversationInterceptor |
getInstance() |
void |
onNewConversation(ConversationType conversationRequestType,
java.lang.String customVisitorData,
IUnbluApiSuccessCallback<java.lang.String> successCallback)
Interceptor function which is called every time a new conversation is started from the UI or visitor SDK API.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onConversationOpenExternalLinkRequest
public void onNewConversation(@NonNull ConversationType conversationRequestType, @Nullable java.lang.String customVisitorData, @NonNull IUnbluApiSuccessCallback<java.lang.String> successCallback)
IConversationInterceptor
onNewConversation
in interface IConversationInterceptor
conversationRequestType
- The type of the conversation being started.customVisitorData
- Optional visitorData, only present if passed to the onNewConversation method. This is referring to visitorData in the Web APIsuccessCallback
- This callback can be triggered with new/updated visitorData. But it must always be triggered! If not, now conversation will be started.public static UnbluConversationInterceptor getInstance()