Can accessibility service be stopped or killed?

前端 未结 2 1711
南方客
南方客 2021-01-22 20:23

I have written an accessibility service and I want the service to be stopped/killed once it receives an accessibility event (i.e. in method onAccessibilityEvent). C

2条回答
  •  佛祖请我去吃肉
    2021-01-22 21:00

    In Android 7.0 (API 24), you can call disableSelf() on the AccessibilityService to disable the service, which also stops it.

提交回复
热议问题