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 the browser via JavaScript? WebKit has force touch APIs to support it on four runs touch trackpad) so I'm guessing it'll be pretty useful if they release this one too. Is anything out yet?
Also how to debug and test for touch bar functions, is there some 'MAC EMULATOR' sort of thing?
If you're still lamenting the loss of the Touch Bar, we may have good news. A new report from a MacRumors tipster claims that Apple is actually planning to keep the Touch Bar around for another generation. It would be a strange move and one that goes against conventional wisdom and rumors.
Despite the fan theories, Apple's vice president of worldwide marketing Greg Joswiak told Wired that customers just didn't like the touch feature. “There's no doubt that our Pro customers love that full-size, tactile feel of those function keys, and so that's the decision we made.
The end result remains the same — Apple was led to the decision to ax it. The new 14-inch and 16-inch MacBook Pro notebooks no longer have a Touch Bar. It is replaced by a row of physical keys that blend well with the keyboard.
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.
There is a native API: https://developer.apple.com/reference/appkit/nstouchbar
I don't know whether there will be support via Javascript
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With