Package com.unblu.sdk.core.visitor
Interface ConversationInterceptor
-
@Deprecated public interface ConversationInterceptor
Deprecated.UseConversationInterceptorWithRecipient
. This class will no longer be supported in the future.Interface for intercepting new conversations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
onNewConversation(com.unblu.sdk.core.internal.visitor.ConversationType conversationRequestType, java.lang.String customVisitorData, SuccessCallback<java.lang.String> successCallback)
Deprecated.An interceptor function called every time a new conversation is started from the UI or visitor SDK API.
-
-
-
Method Detail
-
onNewConversation
void onNewConversation(@NonNull com.unblu.sdk.core.internal.visitor.ConversationType conversationRequestType, @Nullable java.lang.String customVisitorData, @NonNull SuccessCallback<java.lang.String> successCallback)
Deprecated.An interceptor function called every time a new conversation is started from the UI or visitor SDK API. If visitorData was passed to theUnbluVisitorClient.startNewConversation(com.unblu.sdk.core.internal.visitor.ConversationType, com.unblu.sdk.core.callback.SuccessCallback<com.unblu.sdk.core.conversation.UnbluConversation>, com.unblu.sdk.core.internal.InitConversationExceptionCallback)
API call, it's also passed on to this function. If not, visitorData is null.- Parameters:
conversationRequestType
- The type of conversation being started.customVisitorData
- Optional visitorData, only present if passed toUnbluVisitorClient.startNewConversation(com.unblu.sdk.core.internal.visitor.ConversationType, com.unblu.sdk.core.callback.SuccessCallback<com.unblu.sdk.core.conversation.UnbluConversation>, com.unblu.sdk.core.internal.InitConversationExceptionCallback)
. The visitorData is passed in through the SDK when you start a conversation.successCallback
- This callback must be triggered to start the conversation. It can also be triggered with new or updated visitorData.
-
-