ViewComponents
A container for all customizable Composable components in the Messaging for In-App UI.
Implement this interface to override the default rendering of chat feed entries, the top app bar, the conversation-closed banner, or markdown text content. Assign your implementation to UIClient.viewComponents before the UI is displayed.
Each method receives a content lambda that renders the SDK's default composable for that slot. You can:
Call
content()to keep the default rendering.Ignore
content()and render your own composable to fully replace the default.Wrap
content()with additional composables to augment the default.Return without rendering anything to hide the component entirely.
See also
Samples
uiClient.viewComponents = object : ViewComponents {
@Composable
override fun ChatFeedEntry(
entry: ChatFeedEntry,
content: @Composable () -> Unit
) {
content()
}
}Inheritors
Functions
Renders a single entry in the chat feed.
Renders the top app bar displayed at the top of each messaging screen.
Renders the banner displayed when the conversation has been closed by the agent or system.
Renders text content that may contain markdown formatting.