Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface WindowService

Hierarchy

  • WindowService

Index

Properties

Readonly onUnload

onUnload: Event<void>

Fires when the window unloads. The unload event is inevitable. On this event, the frontend application can save its state and release resource. Saving the state and releasing any resources must be a synchronous call. Any asynchronous calls invoked after emitting this event might be ignored.

Methods

canUnload

  • canUnload(): boolean

openNewDefaultWindow

  • openNewDefaultWindow(): void

openNewWindow

  • Opens a new window and loads the content from the given URL. In a browser, opening a new Theia tab or open a link is the same thing. But in Electron, we want to open links in a browser, not in Electron.

    Parameters

    Returns undefined