Package io.jmix.aichat.component.chat
Class AiChatSupport
java.lang.Object
io.jmix.aichat.component.chat.AiChatSupport
Framework-internal bridge that exposes protected
AiChat members to
add-on classes in other packages, using the same same-package public-static-over
-protected shape as ViewControllerUtils. Not application API.-
Method Summary
Modifier and TypeMethodDescriptionstatic com.vaadin.flow.shared.RegistrationaddAttachmentsEnabledChangeListener(AiChat<?> chat, Consumer<Boolean> listener) Adds a listener notified when the chat's attachments-enabled state changes.static AiMessageInputgetMessageInput(AiChat<?> chat)
-
Method Details
-
getMessageInput
- Parameters:
chat- the chat to read- Returns:
- the chat's inner message input
-
addAttachmentsEnabledChangeListener
public static com.vaadin.flow.shared.Registration addAttachmentsEnabledChangeListener(AiChat<?> chat, Consumer<Boolean> listener) Adds a listener notified when the chat's attachments-enabled state changes.- Parameters:
chat- the chat to observelistener- the listener to add- Returns:
- a registration for removing the listener
-