com.salesforce.android.chat.ui.ChatKnowledgeArticlePreviewClickListener |
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.
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.
|
Interface for providing an action to a hyperlink preview click event for a knowledge article link.
context | A context object to use. |
---|---|
articleIdOrTitle | The 18 character articleId or article title. |