// Close the conversation window
Otis.ui.closeChatWindow();
// Close the conversation window and then print "Chat window contracted!" to// the console.
Otis.ui.closeChatWindow(() => {
console.log("Chat window contracted!");
});
Parameters
Optional onClose: undefined | (() => void)
Function to execute when the conversation window has contracted (optional)
// Open the conversation window
Otis.ui.openChatWindow();
// Open the conversation window and then print "Chat window expanded!" to// the console.
Otis.ui.openChatWindow(() => {
console.log("Chat window expanded!");
});
Parameters
Optional onOpen: undefined | (() => void)
Function to execute when the conversation window has expanded (optional)
Usage
// Close the conversation window Otis.ui.closeChatWindow(); // Close the conversation window and then print "Chat window contracted!" to // the console. Otis.ui.closeChatWindow(() => { console.log("Chat window contracted!"); });