Options
All
  • Public
  • Public/Protected
  • All
Menu

The Window aptitude provides access to the the ability to identyfy window status.

Hierarchy

  • Window

Index

Methods

  • Get the currently focused window and it's data.

    Returns Promise<WindowInfo>

    A promise containing active window info.

  • Get a list of all the windows and their information.

    Returns Promise<WindowInfo[]>

    A promise containing all window info.

  • getActiveWindowID(): Promise<number>
  • Get current active window ID.

    Returns Promise<number>

    A promise contain active window ID.

  • Receive notifications whenever the currently focused window changes.

    Parameters

    • callback: (windowInfo: WindowInfo) => void

      A function called when active window changes.

    Returns Promise<Cancellable>

  • Receive a notification whenever a window is opened, closed, focused, unfocused, moved, resized, or its title changes. A window that is opened with focus will generate an Opened event and a Focused event.

    Parameters

    • callback: (windowEvent: WindowEvent) => void

      A function called when any window changes.

    Returns Promise<Cancellable>

Generated using TypeDoc