Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HostAppService

Provides interaction with the main process

Hierarchy

  • HostAppService

Index

Properties

isFullScreen

isFullScreen: boolean = false

isPortable

isPortable: boolean = !!process.env.PORTABLE_EXECUTABLE_FILE

platform

platform: Platform

shown

shown: EventEmitter<any> = new EventEmitter<any>()

Fired once the window is visible

Accessors

cliOpenDirectory$

  • get cliOpenDirectory$(): Observable<string>

cliOpenProfile$

  • get cliOpenProfile$(): Observable<string>

cliPaste$

  • get cliPaste$(): Observable<string>

cliRunCommand$

  • get cliRunCommand$(): Observable<string[]>

configChangeBroadcast$

  • get configChangeBroadcast$(): Observable<void>

displayMetricsChanged$

  • get displayMetricsChanged$(): Observable<void>

preferencesMenu$

  • get preferencesMenu$(): Observable<void>

secondInstance$

  • get secondInstance$(): Observable<void>

windowCloseRequest$

  • get windowCloseRequest$(): Observable<void>

windowMoved$

  • get windowMoved$(): Observable<void>

Methods

bringToFront

  • bringToFront(): void

broadcastConfigChange

  • broadcastConfigChange(): void

closeWindow

  • closeWindow(): void

emitReady

  • emitReady(): void

focusWindow

  • focusWindow(): void

getWindow

  • getWindow(): BrowserWindow

maximize

  • maximize(): void

minimize

  • minimize(): void

newWindow

  • newWindow(): void

openDevTools

  • openDevTools(): void

popupContextMenu

  • popupContextMenu(menuDefinition: MenuItemConstructorOptions[]): void

quit

  • quit(): void

relaunch

  • relaunch(): void

setAlwaysOnTop

  • setAlwaysOnTop(flag: boolean): void

setBounds

  • setBounds(bounds: Bounds): void

setTitle

  • setTitle(title: string): void

setTouchBar

  • setTouchBar(touchBar: TouchBar): void

setVibrancy

  • setVibrancy(enable: boolean, type: string): void
  • Sets window vibrancy mode (Windows, macOS)

    Parameters

    • enable: boolean
    • type: string

      null, or fluent when supported (Windowd only)

    Returns void

toggleFullscreen

  • toggleFullscreen(): void

toggleMaximize

  • toggleMaximize(): void

unmaximize

  • unmaximize(): void

Generated using TypeDoc