Namespace TheiaRendererAPI
Functions
onApplicationStateChanged
onIpcData
- onIpcData(handler: ((sender: WebContents, data: Uint8Array) => void)): Disposable
Parameters
handler: ((sender: WebContents, data: Uint8Array) => void)
- (sender: WebContents, data: Uint8Array): void
Parameters
sender: WebContents
data: Uint8Array
Returns void
onRequestReload
- onRequestReload(wc: WebContents, handler: (() => void)): Disposable
Parameters
wc: WebContents
handler: (() => void)
requestClose
- requestClose(wc: WebContents, stopReason: StopReason): Promise<boolean>
Parameters
Returns Promise<boolean>
requestSecondaryClose
- requestSecondaryClose(mainWindow: WebContents, secondaryWindow: WebContents): Promise<boolean>
Parameters
mainWindow: WebContents
secondaryWindow: WebContents
Returns Promise<boolean>
sendData
- sendData(wc: WebContents, data: Uint8Array): void
Parameters
wc: WebContents
data: Uint8Array
Returns void
sendWindowEvent
- sendWindowEvent(wc: WebContents, event: WindowEvent): void