Is there a way to access the haptic feedback via WatchKit?

一个人想着一个人 提交于 2019-11-29 13:59:48

No there isn't. The following is from this post https://devforums.apple.com/thread/254540?tstart=15.

There is no access to these hardware features at this time, though there is presentation of a text input controller via WKInterfaceController, which will involve the microphone. Past that, I have no information concerning forthcoming releases.

hgwhittle

Yes. As of watchOS 2.0, you can give haptic feedback with the play() method method like this:

WKInterfaceDevice.currentDevice().play(.success)

For now, the only way to give haptic feedback is by showing a notification.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!