Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UiCommands

Hierarchy

  • UiCommands

Index

Methods

closeChatWindow

  • closeChatWindow(onClose?: undefined | (() => void)): void
  • Usage

    example
    // 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)

    Returns void

openChatWindow

  • openChatWindow(onOpen?: undefined | (() => void)): void
  • Usage

    example
    // 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)

    Returns void