0

Objective-C Question

Hey, I need help figuring out how to use playHaptic with watchkit since the documentation is a little confusing. I have

        - (void)playHaptic:(WKHapticType)WKHapticTypeFailure

and I keep getting the error

Use of undeclared identifier 'playHaptic'

here is the documentation page: link

Any help is appreciated! Thanks, Chase

chaserobbins
  • 17
  • 1
  • 6

1 Answers1

0

To play a haptic, you need to do something like this:

[[WKInterfaceDevice currentDevice] playHaptic: WKHapticTypeNotification];

You can find the different types of haptics here.

Evan
  • 202
  • 2
  • 6