public interface

ChatKnowledgeArticlePreviewDataHelper

com.salesforce.android.chat.ui.ChatKnowledgeArticlePreviewDataHelper

Class Overview

Callback interface for supplying a knowledge article's title and summary for generating a hyperlink preview.

The onPreviewDataRequested(String, ChatKnowledgeArticlePreviewDataHelper) callback may be implemented using this interface and then passed to the ChatUI client via the knowledgeArticlePreviewDataProvider(ChatKnowledgeArticlePreviewDataProvider) builder.

In the event of a failure to retrieve the title and summary of an article, the callback should still be called with null values. In this scenario the regular hyperlink preview logic will be followed in an attempt to display the metadata for the supplied link.

Summary

Public Methods
abstract void onPreviewDataReceived(String title, String summary)
Knowledge hyperlink preview provider callback for the knowledge article linked in the chat-feed.

Public Methods

public abstract void onPreviewDataReceived (String title, String summary)

Knowledge hyperlink preview provider callback for the knowledge article linked in the chat-feed.

Parameters
title The title or main heading for the article.
summary The summary or short synopsis for the article.