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

ios watchkit

1628 просмотра

3 ответа

I plan to create an Apple Watch app. Is there a way to access the haptic feedback via WatchKit?

Автор: mobileideafactory.com Источник Размещён: 12.11.2019 09:26

Ответы (3)


10 плюса

Решение

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.

Автор: Stephen Johnson Размещён: 20.11.2014 10:44

10 плюса

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

WKInterfaceDevice.currentDevice().play(.success)
Автор: hgwhittle Размещён: 16.06.2015 06:34

3 плюса

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

Автор: phatmann Размещён: 24.03.2015 11:43
Вопросы из категории :
32x32