Skip to main content

类:TouchBarGroup

类:TouchBarGroup

¥Class: TouchBarGroup

在触摸栏中为原生 macOS 应用创建一个组

¥Create a group in the touch bar for native macOS applications

进程:主进程
该类不是从 'electron' 模块导出的。它仅可用作 Electron API 中其他方法的返回值。

¥Process: Main
This class is not exported from the 'electron' module. It is only available as a return value of other methods in the Electron API.

new TouchBarGroup(options)

  • options 对象

    ¥options Object

    • items TouchBar - 以组形式显示的项目。

      ¥items TouchBar - Items to display as a group.