Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ElectronWindowService

Hierarchy

Implements

Index

Properties

Protected closeOnUnload

closeOnUnload: boolean = false

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

Protected Readonly contributions

Protected Readonly corePreferences

corePreferences: CorePreferences

Protected Readonly delegate

Protected Readonly electronWindowPreferences

electronWindowPreferences: ElectronWindowPreferences

Protected frontendApplication

frontendApplication: FrontendApplication

Protected isUnloading

isUnloading: boolean = false

Lock to prevent multiple parallel executions of the beforeunload listener.

Protected onUnloadEmitter

onUnloadEmitter: Emitter<void> = new Emitter<void>()

Accessors

onUnload

  • get onUnload(): Event<void>

Methods

canUnload

  • canUnload(): boolean

Protected init

  • init(): void

onStart

openNewWindow

  • openNewWindow(url: string, __namedParameters?: { external: undefined | false | true }): undefined

Protected preventUnload

  • preventUnload(event: BeforeUnloadEvent): string | void

registerUnloadListeners

  • registerUnloadListeners(): void

Protected shouldUnload

  • shouldUnload(): boolean

Protected updateWindowZoomLevel

  • updateWindowZoomLevel(): void