Perform swipe on screen using AccessibilityService

后端 未结 2 1309
南旧
南旧 2020-12-31 14:34

I want to perform swipe on screen using accessibility service. i tried this but this only perform a single touch. i know it is possible because when enable my service on dev

2条回答
  •  有刺的猬
    2020-12-31 15:10

    Make sure you configured your service to perform gestures:

    android:canPerformGestures="true"
    

    Setup your path correctly:

    p.moveTo(position.x, position.y);
    p.lineTo(position.x + 300, position.y); 
    

    It only works on android 24 and above.

提交回复
热议问题