| 211 | } |
| 212 | |
| 213 | MaaBool CustomStopApp(const char* intent, void* trans_arg) |
| 214 | { |
| 215 | auto customCtx = reinterpret_cast<CustomControllerContext*>(trans_arg); |
| 216 | auto ctx = customCtx->callbacks["stop_app"]; |
| 217 | return ctx->Call<bool>([&](maajs::FunctionType func) { |
| 218 | return func.Call( |
| 219 | { |
| 220 | maajs::StringType::New(func.Env(), intent), |
| 221 | }); |
| 222 | }); |
| 223 | } |
| 224 | |
| 225 | MaaBool CustomScreencap(void* trans_arg, MaaImageBuffer* buffer) |
| 226 | { |