TouchBar
Class: TouchBar
Создание макетов TouchBar для родных приложений macOS
Процесс: Главный
new TouchBar(options)
Создает новую touchbar с указанными элементами. Use BrowserWindow.setTouchBar
to add the TouchBar
to a window.
Примечание: TouchBar API в настоящее время является экспериментальным и может быть изменен или удален в будущих версиях Electron.
Tip: If you don't have a MacBook with Touch Bar, you can use Touch Bar Simulator to test Touch Bar usage in your app.
Static Properties
TouchBarButton
A typeof TouchBarButton
reference to the TouchBarButton
class.
TouchBarColorPicker
A typeof TouchBarColorPicker
reference to the TouchBarColorPicker
class.