获取关联的控制器 / Get bound controller Returns: Controller: 控制器对象 / Controller object Raises: RuntimeError: 如果获取失败
(self)
| 91 | |
| 92 | @property |
| 93 | def controller(self) -> Controller: |
| 94 | """获取关联的控制器 / Get bound controller |
| 95 | |
| 96 | Returns: |
| 97 | Controller: 控制器对象 / Controller object |
| 98 | |
| 99 | Raises: |
| 100 | RuntimeError: 如果获取失败 |
| 101 | """ |
| 102 | controller_handle = Library.framework().MaaTaskerGetController(self._handle) |
| 103 | if not controller_handle: |
| 104 | raise RuntimeError("Failed to get controller.") |
| 105 | |
| 106 | return Controller(handle=controller_handle) |
| 107 | |
| 108 | @property |
| 109 | def inited(self) -> bool: |
nothing calls this directly
no test coverage detected