Does watchOS 2 have an API for Force Touch?

As a name, let's say I want to determine if the WKInterfaceButton or Force Touch button is normally pressed. Is this possible now through watchOS 2?

+5
source share
2 answers

Force Touch is available for use in watchOS, but you can only determine whether Force Touch is used full screen or not, and then display a context menu. You can put selection buttons on it, up to four for each menu. Please note that each storyboard can contain only one menu containing up to four buttons.

Therefore, you cannot define Force Touch on a specific button. Also, you cannot access direct APIs. The only way to implement Force Touch actions is to create a menu as described above, and then inform Apple Watch of the menu call when the user uses Force Touch. You only have the ability to control the menu, and everything that happens before and after Force Touch is used, and you do not have direct access to the Force Touch API, even in watchOS 2.

+3
source

It is currently unavailable. Take a look at this answer citing Apple Evangelist.

+1
source

All Articles