Package com.unblu.sdk.core.visitor
Interface ConversationInterceptorWithRecipient
-
public interface ConversationInterceptorWithRecipient
Interface for intercepting new conversations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onNewConversation(com.unblu.sdk.core.internal.visitor.ConversationType conversationRequestType, java.lang.String customVisitorData, ConversationRecipient conversationRecipient, ConversationInterceptCallback interceptCallback)
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, @Nullable ConversationRecipient conversationRecipient, @NonNull ConversationInterceptCallback interceptCallback)
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.conversationRecipient
- Optional recipient, 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)
interceptCallback
- This callback must be triggered to start the conversation. It can also be triggered with a new or updatedConversationRecipient
or with new or updated visitorData.
-
-