Skip to content

ElectronBrowserWindow.setTouchBar method

ElectronBrowserWindow › setTouchBar

Unofficial

Sets the touch bar layout for the current window. Specifying null or undefined clears the touch bar (macOS only).

Signature:

setTouchBar(touchBar: ElectronTouchBar | null): void

Parameters:

Parameter Type Description
touchBar ElectronTouchBar | null The touch bar, or null to clear it.

Returns: void