Is there a way to register multi-touch as a single touch? Say if I use three fingers to tap a large button, can it be registered as simply one tap of the button? -- the current default appears to treat it as a multi-touch, and as a result ignores the button-pressing altogether. Similarly, if I use my palm to tap a large button, the button isn't pressed either.
I noticed in iphone Accessibility Settings -> Touch Accommodations, one could set "Ignore Repeat" and "Use Initial Touch Location" for tap assistance. Of course, if those are turned on, it affects the entire phone instead of just one app. But would that be the direction to approach this problem?
BTW I don't actually need multi-touch in my app. So if turning off multi-touch can be more simply done on the whole-app level instead of button-by-button, it would suit this case very well.
Thank you #DonMag for providing a hint.
So, if yours is an ios app from Capacitor, here is how to change your javascript code:
Change your button onClick events into "onTouchStart"
Use a state variable to keep track of whether "onTouchStart" is triggered and the resulting logic is executing. During that execution, prevent more touch events to have further effect on the button. This is to prevent the button from being pressed in quick succession by multiple touches that come from, say, your three-finger tap or palm tap. Only after the execution is finished do you revert the state variable back to the original value, so that the button is ready to be pressed again.
If there is an answer that's more suitable for the native Swift bundle I'll accept that as the answer. The above is just to help anyone who may encounter the same problem as mine.
I googled for this problem and tried out many possible ways but didn't work out.Please help me to solve this. What my problem is
What are the notifications recieved after tapping on next/previous buttons in MPMoviePlayerController.
Can I recognise the notifications from the above is either next or previous.
If I am not able to accomplish the above
How can i disable next and prev actions in MPMoviePlayerController(in
swift).
Thanks in advance.
I want to do some action in my app when the user presses the power button two times while my app is already in background/closed. How can I trigger the action of power button for it inside my app? or if I can add any observer in my app for such action? Is it possible to get this functionality in iOS?
Thanks for help
It is not possible to observe exactly on touching any button on the device. It is the same with volume buttons, you can observe the effect (volume went up or down) but not the pushing button in fact (the volume changed could be triggered in other way).
Sum up:
This is not possible, do not go for it.
I use UILocalNotification for an alarm app, when it fires I want to keep the sound even if user press the other buttons like home button or sleep button. The Rise app just achieve that, any ideas how? Thanks.
I'm writing a streaming app that's using the remote control feature (remoteControlReceivedWithEvent:).
I can start and stop songs with the remote control as expected.
But I can't seem find out how to disable the next and previous song button on the home screen (double-tap home and swipe all the way to the left).
I'm using a MPMoviePlayerController internally.
Thanks :)
As far as I know the API doesn't allow you to show the buttons as disabled. I think the best you can do is just not take any action when one of those buttons are pressed.
I have not observed any other major app that shows the remote buttons as disabled.