| 语法: | isAccessibilityServiceRun() | |
|---|---|---|
| 参数 | 类型 | 说明 |
| 无 | ||
| return | 布尔类型 | true︰请求成功 false︰请求失败 |
| 注意事项 | 仅使用无障碍模式下判断,其他模式无效 |
import('java.lang.*')import('android.content.Context')import('com.nx.assist.lua.LuaEngine')import('com.nx.assist.lua.IReqSnapshotServiceResult')local cbReqSnapshot = IReqSnapshotServiceResult{onResult = function(ret)print(ret) --ret是true或者false true表示成功,false失败end}if isSnapshotServiceRun() == false thenLuaEngine.requestSnapshotService(cbReqSnapshot)endsleep(1000000)
