MessagingInAppUI
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.
When embedding this composable in your own activity, declare android:configChanges="smallestScreenSize|screenSize|screenLayout|orientation" (and keyboardHidden if desired) on that host activity. Without this, entering split-screen or multi-window recreates the activity and the conversation UI can render as a blank screen. The SDK-launched MessagingInappActivity already declares these config changes.
Parameters
The UIClient instance that provides the configuration and state for the UI.
Called when the user exits the messaging UI. Typically used to pop the navigation stack or finish the hosting activity.