Has Apple released APIs for touch bar yet?

后端 未结 2 1642
青春惊慌失措
青春惊慌失措 2021-02-09 06:46

Apple just announced the new MacBook with the touch bar. Are there APIs that app developers can use? I can\'t seem to find any online yet.

Does it support access from th

相关标签:
2条回答
  • 2021-02-09 07:29

    There is a native API: https://developer.apple.com/reference/appkit/nstouchbar

    I don't know whether there will be support via Javascript

    0 讨论(0)
  • 2021-02-09 07:52

    I think this option is for native client, it won’t be able to manipulate in browser, unless the browser doesn’t support it

    If you're writing Native Client (JavaScript only), then here is a repository.

    UPDATE: It is already supported by Electron.

    0 讨论(0)
提交回复
热议问题