Package-level declarations
Functions
Link copied to clipboard
fun HatangChatInbox(modifier: Modifier = Modifier, onOpenConversation: (VisitorConversationDto) -> Unit? = null, onNewConversation: () -> Unit? = null, onClose: () -> Unit? = null, showTopBar: Boolean = true, engine: ChatEngine? = null)
The visitor's conversations, newest activity first: who answered, the last message, when, unread count and status. Tapping one opens it; "New message" opens the current conversation (or an empty one).
Link copied to clipboard
fun HatangChatScreen(modifier: Modifier = Modifier, conversationId: String? = null, onClose: () -> Unit? = null, title: String? = null, engine: ChatEngine? = null, themeMode: HatangChatThemeMode? = null, theme: HatangChatTheme? = null, darkTheme: HatangChatTheme? = null, strings: Map<HatangLocale, HatangChatStrings>? = null)
The full chat screen: top bar with the site name and availability, the conversation and the composer. HatangChat.open shows it in its own activity; hosts with their own navigation can place it directly (it draws edge-to-edge and pads for the status bar, navigation bar and keyboard itself).
Link copied to clipboard
fun HatangConversationView(modifier: Modifier = Modifier, engine: ChatEngine? = null, theme: HatangChatTheme? = null, darkTheme: HatangChatTheme? = null, strings: Map<HatangLocale, HatangChatStrings>? = null)
The conversation without a top bar (banners, messages, composer, branding), to embed under your own app bar or in a tab. Pads for the navigation bar and the keyboard.