开发者使用“Taptic Engine"在 Apple Watch 上 [英] Developer use of "Taptic Engine" on Apple Watch

查看:25
本文介绍了开发者使用“Taptic Engine"在 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创建突破性的新应用、概览和可操作的通知专为创新的 Apple Watch 界面而设计,并与新的Force Touch、Digital Crown 和Taptic Engine等技术.

With the iOS 8.2 beta SDK, developers can now start using WatchKit to create breakthrough new apps, Glances and actionable notifications designed for the innovative Apple Watch interface and work with new technologies such as Force Touch, Digital Crown and Taptic Engine.

在梳理了 WatchKit 框架文档后,我发现没有提到使用 Taptic Engine.有没有办法让开发者使用它?也许他们还没有实现,它可能会在 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) API 来播放Watch 应用的触觉反馈.

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屋!

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