Package com.unblu.sdk.core.visitor
Interface ConversationInterceptor
Deprecated.
Interface for intercepting new conversations.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonNewConversation(ConversationType conversationRequestType, String customVisitorData, SuccessCallback<String> successCallback) Deprecated.An interceptor function called every time a new conversation is started from the UI or visitor SDK API.
-
Method Details
-
onNewConversation
void onNewConversation(@NonNull ConversationType conversationRequestType, @Nullable String customVisitorData, @NonNull SuccessCallback<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.model.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.model.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.
-
ConversationInterceptorWithRecipient. This class will no longer be supported in the future.