Methods
attachSecurityToken
- attachSecurityToken(endpoint: string): Promise<void>
Parameters
Returns Promise<void>
closePopup
- closePopup(handle: number): void
focusWindow
- focusWindow(name: string): void
getSecurityToken
- getSecurityToken(): string
getTitleBarStyleAtStartup
- getTitleBarStyleAtStartup(): Promise<string>
getZoomLevel
- getZoomLevel(): Promise<number>
isFullScreenable
- isFullScreenable(): boolean
onData
- onData(handler: ((data: Uint8Array) => void)): Disposable
Parameters
handler: ((data: Uint8Array) => void)
popup
- popup(menu: MenuDto[], x: number, y: number, onClosed: (() => void)): Promise<number>
Parameters
x: number
y: number
onClosed: (() => void)
Returns Promise<number>
sendData
- sendData(data: Uint8Array): void
setCloseRequestHandler
- setCloseRequestHandler(handler: ((reason: StopReason) => Promise<boolean>)): void
Parameters
handler: ((reason: StopReason) => Promise<boolean>)
Parameters
Returns Promise<boolean>
Returns void
setMenu
- setMenu(menu: undefined | MenuDto[]): void
setMenuBarVisible
- setMenuBarVisible(visible: boolean, windowName?: string): void
Parameters
visible: boolean
Optional windowName: string
Returns void
setSecondaryWindowCloseRequestHandler
- setSecondaryWindowCloseRequestHandler(windowName: string, handler: (() => Promise<boolean>)): void
Parameters
windowName: string
handler: (() => Promise<boolean>)
Returns void
setTitleBarStyle
- setTitleBarStyle(style: string): void
setZoomLevel
- setZoomLevel(desired: number): void
showItemInFolder
- showItemInFolder(fsPath: string): void
writeClipboard
- writeClipboard(text: string): void