Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ElectronWindowService

Hierarchy

Index

Constructors

Properties

allowVetoes: boolean = true
closeOnUnload: boolean = false

Close the window right away when true, else check if we can unload.

corePreferences: CorePreferences
electronWindowPreferences: ElectronWindowPreferences
frontendApplication: FrontendApplication
isUnloading: boolean = false

Lock to prevent multiple parallel executions of the beforeunload listener.

onUnloadEmitter: Emitter<void> = ...

Accessors

  • get onUnload(): Event<void>

Methods

  • handleBeforeUnloadEvent(event: BeforeUnloadEvent): string | void
  • init(): void
  • isSafeToShutDown(): Promise<boolean>
  • openNewDefaultWindow(): void
  • preventUnload(event: BeforeUnloadEvent): string | void
  • registerUnloadListeners(): void
  • reload(): void
  • setSafeToShutDown(): void
  • updateWindowZoomLevel(): void