Open shaping520 opened 1 month ago
希望添加多指触屏的功能,比如可以实现三指截屏功能,在java的UiObject类中是有这个方法的,两指操作也是调用的多指的方法,只是参数只传了2个point,其实是可以支持多个point的。 java的UiObject代码: public boolean performTwoPointerGesture(Point startPoint1, Point startPoint2, Point endPoint1, Point endPoint2, int steps) { ... ... PointerCoords[] points1 = new PointerCoords[steps + 2]; PointerCoords[] points2 = new PointerCoords[steps + 2]; ... ... return performMultiPointerGesture(points1, points2); } public boolean performMultiPointerGesture(PointerCoords[] ...touches) { return getInteractionController().performMultiPointerGesture(touches); }
pip show uiautomator2
希望添加多指触屏的功能,比如可以实现三指截屏功能,在java的UiObject类中是有这个方法的,两指操作也是调用的多指的方法,只是参数只传了2个point,其实是可以支持多个point的。 java的UiObject代码: public boolean performTwoPointerGesture(Point startPoint1, Point startPoint2, Point endPoint1, Point endPoint2, int steps) { ... ... PointerCoords[] points1 = new PointerCoords[steps + 2]; PointerCoords[] points2 = new PointerCoords[steps + 2]; ... ... return performMultiPointerGesture(points1, points2); } public boolean performMultiPointerGesture(PointerCoords[] ...touches) { return getInteractionController().performMultiPointerGesture(touches); }
pip show uiautomator2
) :3.1.1