简体   繁体   中英

Force touch in iOS or Apple Watch

Is it possible to somehow detect how much force someone pushes a force touch. Like can I know if one press was harder than another?

Right now developers have Full Access to Mac OS X Force Touch only, WatchKit ForceTouch is not even mentioned in the API so you can't expect yo use this function in your app. Just like said in the comments, WWDC is in this week wait to see the announcements, maybe they release something.

Hope it Helps.

Force Touch APIs are the following:

  • For Apple Watch: There is no API available, but you can use the context menus. If Apple Watch detects a Force Touch, it will open the context menu associated for your app. See Apple Watch Programming Guide book form Apple for more details about context menu (Force Touch) APIs.

  • For Macbook: There are APIs for the new Force Touch trackpad in the new Macbook introduced in March 2015, and more will be available after WWDC15 (June 8-12, San Fransisco).

  • For iOS: There is no Force Touch compatible screen available for any of iOS devices, but APIs may be introduced in WWDC15 (June 8-12, San Francisco).

Update: In WWDC15, they introduced Force Touch APIs and a lot of other APIs for watchOS 2, but nit for iOS 9.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM