com.salesforce.android.chat.ui.ChatKnowledgeArticlePreviewDataProvider |
Interface for providing a knowledge article's title and summary to a hyperlink preview rendered in the chat feed.
To provide data for an article preview, implement this interface and pass the instance to the
ChatUI client using the knowledgeArticlePreviewDataProvider(ChatKnowledgeArticlePreviewDataProvider)
builder.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract boolean |
onPreviewDataRequested(String articleIdOrTitle, ChatKnowledgeArticlePreviewDataHelper onPreviewDataReceived)
Retrieves the article's title and summary given the articleIdOrTitle.
|
Retrieves the article's title and summary given the articleIdOrTitle.
articleIdOrTitle | The 18 character articleId or article title. |
---|---|
onPreviewDataReceived | The callback used to return the article's title and summary for use in generating the hyperlink preview. |