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.
| Parameter | Type | Description |
|---|---|---|
| modifier | Modifier | Modifier to be applied to the component |
| text | String | HTML string to display |
| customMovementMethod | MovementMethod | Movement method for text interaction |
@Composable fun AgentforceRichText
Displays rich text content. Intended to be displayed in the content area of the chat response.
| Parameter | Type | Description |
|---|---|---|
| view | AgentforceComponent | Component view to display |
| text | String | Text content to display |
| isContentSafe | Boolean? | Whether the content is safe to display (default: true) |
| padding | Dp | Padding around the content |
| locator | String | Locator identifier for testing (default: "copilot_richtext_content") |
| isPartialMessage | Boolean | Whether this is a partial message (default: false) |
@Composable fun AgentforceMarkdownRichText
Markdown UI for view provider mapped to ES type.
| Parameter | Type | Description |
|---|---|---|
| view | AgentforceComponent | Component view to display |
| text | String | Markdown text content to display |
| isContentSafe | Boolean? | Whether the content is safe to display (default: true) |
| padding | Dp | Padding around the content |
| maxLines | Int | Maximum number of lines to display (default: Int.MAX_VALUE) |
| locator | String | Locator identifier for testing (default: "copilot_markdown_content") |
| isPartialMessage | Boolean | Whether this is a partial message (default: false) |