public interface

ChatKnowledgeArticlePreviewClickListener

com.salesforce.android.chat.ui.ChatKnowledgeArticlePreviewClickListener

Class Overview

Interface for providing an action to a hyperlink preview click event.

By default, a hyperlink opens in an external browser. To override the default behavior, implement this interface and pass an instance to the ChatUI client using the knowledgeArticlePreviewClickListener(ChatKnowledgeArticlePreviewClickListener) builder.

Summary

Public Methods
abstract boolean onClick(Context context, String articleIdOrTitle)
Interface for providing an action to a hyperlink preview click event for a knowledge article link.

Public Methods

public abstract boolean onClick (Context context, String articleIdOrTitle)

Interface for providing an action to a hyperlink preview click event for a knowledge article link.

Parameters
context A context object to use.
articleIdOrTitle The 18 character articleId or article title.
Returns
  • If click listener was invoked or not.