Rich Text Display

Android Compose components for rich text rendering in Agentforce conversations.

@Composable fun SalesforceRichText

Shows a static label with the styled text from the provided HTML string.

ParameterTypeDescription
modifierModifierModifier to be applied to the component
textStringHTML string to display
customMovementMethodMovementMethodMovement method for text interaction

@Composable fun AgentforceRichText

Displays rich text content. Intended to be displayed in the content area of the chat response.

ParameterTypeDescription
viewAgentforceComponentComponent view to display
textStringText content to display
isContentSafeBoolean?Whether the content is safe to display (default: true)
paddingDpPadding around the content
locatorStringLocator identifier for testing (default: "copilot_richtext_content")
isPartialMessageBooleanWhether this is a partial message (default: false)

@Composable fun AgentforceMarkdownRichText

Markdown UI for view provider mapped to ES type.

ParameterTypeDescription
viewAgentforceComponentComponent view to display
textStringMarkdown text content to display
isContentSafeBoolean?Whether the content is safe to display (default: true)
paddingDpPadding around the content
maxLinesIntMaximum number of lines to display (default: Int.MAX_VALUE)
locatorStringLocator identifier for testing (default: "copilot_markdown_content")
isPartialMessageBooleanWhether this is a partial message (default: false)