If you are looking for Jitsi Meet, the WebRTC compatible video conferencing product click here.

previous | TOC | next

UI Service Documentation

Main application window - visibility, size and position

There are many cases where we need to show, hide or move the main application window from outside the ‘ui bundle’. For example in the case of using a systray icon, which is able to hide or show the application when clicked. For this to be possible the UI Service provides some methods enabling the control of these parameters.

Lets take a close look to each method:

  • isVisible - Checks if the window is visible;
  • setVisible(boolean) - Shows the window when setVisible(true) is invoked and hides it when setVisible(false) is invoked;
  • minimize - Minimizes the window.
  • maximize - Maximizes the window.
  • restore - Restores the window
  • resize(int, int) - Resizes the window to the given width and height.
  • move(int, int) - Moves the window to the given x and y coordinate.

NOTE It’s up to the UI Service implementation to choose the window that will be controlled using these methods. Here we consider that this would be the ‘main application window’, in other words the window containing the contact list.

previous | TOC | next