关闭应用 / Stop app Args: intent: 目标应用 (Adb 控制器: package name) / Target app (Adb controller: package name) Returns: Job: 作业对象 / Job object
(self, intent: str)
| 182 | return self._gen_ctrl_job(ctrl_id) |
| 183 | |
| 184 | def post_stop_app(self, intent: str) -> Job: |
| 185 | """关闭应用 / Stop app |
| 186 | |
| 187 | Args: |
| 188 | intent: 目标应用 (Adb 控制器: package name) / Target app (Adb controller: package name) |
| 189 | |
| 190 | Returns: |
| 191 | Job: 作业对象 / Job object |
| 192 | """ |
| 193 | ctrl_id = Library.framework().MaaControllerPostStopApp(self._handle, intent.encode()) |
| 194 | return self._gen_ctrl_job(ctrl_id) |
| 195 | |
| 196 | def post_touch_down(self, x: int, y: int, contact: int = 0, pressure: int = 1) -> Job: |
| 197 | """按下 / Touch down |
nothing calls this directly
no test coverage detected