MessagingInAppUI

fun MessagingInAppUI(uiClient: UIClient, onExit: () -> Unit)

A Composable that renders the full Messaging for In-App UI.

Use this function to embed the messaging UI directly into your Compose navigation graph. The composable manages its own internal navigation (pre-chat form, chat feed, attachments, etc.) and invokes onExit when the user navigates back from the root screen.

For most use cases, prefer UIClient.MessagingInAppUI which binds to the client instance automatically.

Parameters

uiClient

The UIClient instance that provides the configuration and state for the UI.

onExit

Called when the user exits the messaging UI. Typically used to pop the navigation stack or finish the hosting activity.