Android, IOS force pressing on the screen

蹲街弑〆低调 提交于 2019-12-06 04:14:52

问题


Is there any way to measure the force (weight) clicking on the screen in Android or IOS ?


回答1:


For Android there is MotionEvent.getPressure().

As far as I know iOS does not have a way to get pressure information.




回答2:


Speaking for iOS: there is no possibility to obtain the force employed when touching the screen.



来源:https://stackoverflow.com/questions/8000217/android-ios-force-pressing-on-the-screen

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!