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

前端 未结 3 1505
别跟我提以往
别跟我提以往 2020-12-19 06:33

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

相关标签:
3条回答
  • 2020-12-19 06:55

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

    0 讨论(0)
  • 2020-12-19 06:59

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

    WKInterfaceDevice.currentDevice().play(.success)
    
    0 讨论(0)
  • 2020-12-19 07:04

    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.

    0 讨论(0)
提交回复
热议问题