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?
Does watchOS 2 have API for Force Touch?
899 Views Asked by Jay Hu At
2
There are 2 best solutions below
Related Questions in APPLE-WATCH
- Detect connected bluetooth devices to iPhone
- What is Accessory protocol string (com.apple.blabla ???) of Apple Watch
- Handling Access Tokens and Refresh Token in an Apple Watch Companion App
- Cordova iOS only app upload through transport requires WKWatchKitApp
- Simulate HealthKit Data on WatchOS for Apple Watch
- Apple Watch not receiving notifications from Firestore Cloud Messaging Notification
- Can an Apple Watch Companion App programmatically change Apple Watch background/watch face?
- WatchOS app launched by tapping an associated file
- How does one generate an Xcode project or add an iOS extension to a .Net MAUI iOS project?
- how to programatically trigger notification on the watch from my iOS app
- Watch complication memory crash - EXC_RESOURCE
- responding to WatchOS 10 workout widget play/pause button in third party app
- Is it possible to detect that Watch is paired with iPhone or not without having Watch target
- How to Make Watch app free for subscriber
- I have a watch app that builds, but won't install on a watch
Related Questions in WATCHOS-2
- How to setup SwiftUI app file to allow independent app to deploy on WatchOS 6
- SwiftUI: WebP images are not loading in WatchOS
- isMagnetometerAvailable always return false on Apple Watch series 6
- WatchOS, SwiftUI pop to root view Controller
- Adding App Icon to WatchOS App info.plist
- Where should data reside in a watchOS app?
- Is there any delegate for monitoring progress when transfering data from WatchOs to iOs using WatchConnectivity?
- containerAppExtensionEntitlementsWithCompletion: failed with error: (null)
- Detect "screenshot" press while in background on Apple Watch
- Access Apples fall detection on the Series 4
- HealthKit permission sheet does not appear
- Apple Watch simple "Modular Large" complication not showing in customize screen unless I enable all other complications too
- Check how many consecutive days a user has used an app
- Overlay images and customize x,y position in the watchOS storyboard
- Can we call IBM worklight 7 adapter from WatchOS 2 extension?
Related Questions in WKINTERFACEBUTTON
- WKInterfaceGroup in table highlights contained button on touch down
- How to make a round WKInterfaceButton in watchkit?
- Watchkit Shape Button
- Make WKInterfaceButton keypress clearer in watchOS 2
- how to center title text for WKInterfaceButton with iOS WatchKit
- how to hide WKInterfaceButton in watchkit
- Does watchOS 2 have API for Force Touch?
- WKInterfaceButton multiple line title
- Detect WKInterfaceButton pressed continuously?
- Can a button contain a group in an Apple Watch app?
- change button background color on click- WatchKit
- Change WKInterfaceButton background image on tap
- WKInterfaceButton response time
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
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.