openChatProgrammatically method

void openChatProgrammatically()

Opens the chat interface programmatically.

This method can be called externally to open the chat without user interaction. Useful for triggered conversations or deep linking.

If the chat is already open or the container callback is not available, this method returns early without effect.

Implementation

void openChatProgrammatically() {
  if (isChatOpen || openContainerCallback == null) {
    return;
  }

  openChat();
}