Does watchOS 2 have API for Force Touch?

828 views Asked by At

As the title, for say I wanna determine if the WKInterfaceButton is clicked normally or by Force Touch. Is it achievable now through watchOS 2?

2

There are 2 answers

1
Seyed Parsa Neshaei On BEST ANSWER

Force Touch is available to use in watchOS, but you can only determine if Force Touch is used on the whole screen or not, and then show the context menu. You can put selectable buttons there, up to four for each menu. Note that each storyboard can contain only one menu, which contains up to four buttons.

So you can't determine Force Touch on a specific button. Also you can't access the direct APIs. The only way to implement Force Touch actions is to make a menu as described before, and then tell the Apple Watch to bring up the menu when Force Touch is used by the user. You only have the ability of control the menu, and everything happening before and after Force Touch is being used, and you have no direct access to Force Touch APIs, even in watchOS 2.

0
Philip On

It unavailable at the moment. Look at this answer referring to an Apple Evangelist.