苹果公司是否已经发布了用于触控条的API? [英] Has Apple released APIs for touch bar yet?

查看:116
本文介绍了苹果公司是否已经发布了用于触控条的API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Apple刚刚宣布了带有触摸条的新款MacBook.应用程序开发人员可以使用API​​吗?我似乎找不到任何在线.

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.

它是否支持通过JavaScript从浏览器进行访问? WebKit具有强制触摸API,可以在四次运行的触控轨迹板上支持它),所以我猜测如果他们也发布这一点,它将非常有用.还有东西吗?

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?

还有如何调试和测试触摸条功能,是否有一些"MAC模拟器"之类的东西?

Also how to debug and test for touch bar functions, is there some 'MAC EMULATOR' sort of thing?

推荐答案

我认为此选项适用于本机客户端,除非浏览器不支持,否则它将无法在浏览器中进行操作

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

如果您正在编写Native Client(仅JavaScript),那么这是一个存储库.

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

更新: 电子已经支持.

这篇关于苹果公司是否已经发布了用于触控条的API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆