Interface ConversationInterceptor


  • @Deprecated
    public interface ConversationInterceptor
    Deprecated.
    You should use ConversationInterceptorWithRecipient, as this class will no longer be suported in the future.
    Interface for intercepting new Conversation.

    Make sure when defining, that only one signature is used.

    • 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.
      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,
                               @NonNull
                               SuccessCallback<java.lang.String> successCallback)
        Deprecated.
        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 API.
        successCallback - This callback can be triggered with new/updated visitorData. But it must always be triggered! If not, now conversation will be started.