back soft

مطالب مرتبط با «how does the shallows end» در back soft | نویسنده: استخدام کار

How does the API 24 AccessibilityService.dispatchGesture() method work?

Vote count: 0 With API 24 we got a way to dispatch a gesture to the device, however there is no solid documentation or examples out there yet. I am trying to get it to work but currently the gesture is hitting the "onCancelled" callback every time. Here is my code that calls the method: @TargetApi(24) private void pressLocation(Point position){ GestureDescription.Builder builder = new GestureDescription.Builder(); Path p = new Path(); p.lineTo(position.x, position.y); p.lineTo(position.x+10, position.y+10); builder.addStroke(new GestureDescription.StrokeDescription(p, 10L, 200L)); GestureDescription gesture = builder.build(); boolean isDispatched = dispatchGesture(gesture, new GestureResultC...

ادامه مطلب

برچسب‌های مرتبط

how does the internet work | how does the nearby pokemon work | how does the brain work | how does the martian end | how does the voice work | how does the heart work | how does the shallows end | how does the pill work | how does the sun produce energy | how does the stock market work