开发人员使用“Taptic Engine”在Apple Watch上 [英] Developer use of "Taptic Engine" on Apple Watch
问题描述
根据Apple关于iOS 8.2和Xcode 6.2发布的新闻信息,发现这里,他们提到开发人员能够使用Apple Watch提供的新技术:
According to Apple's press info about the release of iOS 8.2 and Xcode 6.2 found here, they mention developers being able to use the new technologies presented with the Apple Watch:
借助iOS 8.2 beta SDK,开发人员现在可以开始使用WatchKit来
创建突破性的新应用,Glance和可操作的通知
专为创新的Apple Watch界面而设计并使用新的
技术,如Force Touch,Digital Crown和 Taptic Engine 。
梳理WatchKit后框架文档,我没有提到使用Taptic引擎。有没有办法让开发人员使用它?也许他们还没有实现它,它可能会在iOS 8.2的更新版本中出现,但我不认为是这种情况。我缺少什么?
After combing through the WatchKit framework documentation, I have found no mention of using the Taptic Engine. Is there a way for developers to use it? Perhaps they haven't implemented that yet and it may come in a later update for iOS 8.2, but I don't think this is the case. What am I missing?
推荐答案
目前在watchOS 2 beta 1中,您现在可以使用 WKInterfaceDevice。 currentDevice()。playHaptic(.Click)
用于在您的Watch App上播放触觉反馈的API。
Currently in watchOS 2 beta 1, you can now use the WKInterfaceDevice.currentDevice().playHaptic(.Click)
API to play haptic feedback on your Watch App.
您可以在此处找到有关如何使用的完整指南使用这个新的API: http://www.sneakycrab.com/blog/2015/6/22/haptic-feedback-with-the-taptic-engine-in-watchkit-and-watchos -2-wkinterfacedevice-and-wkhaptic
You can find a full guide here on how to use this new API: http://www.sneakycrab.com/blog/2015/6/22/haptic-feedback-with-the-taptic-engine-in-watchkit-and-watchos-2-wkinterfacedevice-and-wkhaptic
这篇关于开发人员使用“Taptic Engine”在Apple Watch上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!