Package com.unblu.sdk.core.visitor
Interface ConversationInterceptorWithRecipient
-
public interface ConversationInterceptorWithRecipient
Interface for intercepting new ConversationMake sure when defining, that only one signature is used
-
-
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)
Interceptor function which is 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)
Interceptor function which is called every time a new conversation is started from the UI or visitor SDK API. If visitorData was passed to the startConversation api call it will be passed on to this function. If not, visitorData will be null- Parameters:
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 APIconversationRecipient
- Optional recipient, only present if passed to the startConversation methodinterceptCallback
- This callbackConversationInterceptCallback
can be triggered with new/updated visitorData/recipientData. But it must always be triggered! If not, no conversation will be started.
-
-