ElectronBrowserWindow.setTouchBar method
ElectronBrowserWindow › setTouchBar
Unofficial
Sets the touch bar layout for the current window. Specifyingnull or undefined clears the touch bar (macOS only). Signature:
setTouchBar(touchBar: ElectronTouchBar | null): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| touchBar | ElectronTouchBar | null | The touch bar, or null to clear it. |
Returns: void