public interface IConversationInterceptor
| Modifier and Type | Method and Description |
|---|---|
default UnbluExternalLinkHandleAction |
onConversationOpenExternalLinkRequest(android.net.Uri url)
Called when a link is tapped in a conversation.
|
void |
onNewConversation(ConversationType conversationRequestType,
java.lang.String customVisitorData,
IUnbluApiSuccessCallback<java.lang.String> successCallback)
Interceptor function which is called every time a new conversation is started from the UI or visitor SDK API.
|
void onNewConversation(@NonNull
ConversationType conversationRequestType,
@Nullable
java.lang.String customVisitorData,
@NonNull
IUnbluApiSuccessCallback<java.lang.String> successCallback)
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 APIsuccessCallback - This callback can be triggered with new/updated visitorData. But it must always be triggered! If not, now conversation will be started.default UnbluExternalLinkHandleAction onConversationOpenExternalLinkRequest(android.net.Uri url)
UnbluExternalLinkHandleAction.OPEN.
url: - The Uri of the link to open.UnbluExternalLinkHandleAction that Unblu will perform.