Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ElectronMainApplication

Hierarchy

  • ElectronMainApplication

Index

Constructors

Properties

_backendPort: Deferred<number> = ...
_config: undefined | RequiredRecursive<Partial>
backendPort: Promise<number> = ...
didUseNativeWindowFrameOnStart: Map<number, boolean> = ...
electronSecurityToken: ElectronSecurityToken
electronSecurityTokenService: ElectronSecurityTokenService
electronStore: ElectronStore<{ windowstate?: TheiaBrowserWindowOptions }> = ...
restarting: boolean = false
useNativeWindowFrame: boolean = true
windows: Map<number, TheiaElectronWindow> = ...

Accessors

  • get config(): RequiredRecursive<Partial>

Methods

  • attachElectronSecurityToken(port: number): Promise<void>
  • attachSaveWindowState(electronWindow: BrowserWindow): void
  • configureNativeSecondaryWindowCreation(electronWindow: BrowserWindow): void
  • createWindowUri(): Promise<URI>
  • getCurrentScreenLayout(): string
  • getForkOptions(): Promise<ForkOptions>
  • getTitleBarStyle(config: RequiredRecursive<Partial>): "native" | "custom"
  • getTitleBarStyleAtStartup(webContents: WebContents): "native" | "custom"
  • hookApplicationEvents(): void
  • onSecondInstance(event: Event, argv: string[], cwd: string): Promise<void>
  • onWillQuit(event: Event): void
  • onWindowAllClosed(event: Event): void
  • openDefaultWindow(): Promise<BrowserWindow>
  • openWindowWithWorkspace(workspacePath: string): Promise<BrowserWindow>
  • requestStop(): void
  • restart(webContents: WebContents): Promise<void>
  • saveWindowState(electronWindow: BrowserWindow): void
  • setTitleBarStyle(webContents: WebContents, style: string): void
  • start(config: RequiredRecursive<Partial>): Promise<void>
  • startBackend(): Promise<number>
  • startContributions(): Promise<void>
  • stopContributions(): void