| 199 | } |
| 200 | |
| 201 | MaaBool CustomStartApp(const char* intent, void* trans_arg) |
| 202 | { |
| 203 | auto customCtx = reinterpret_cast<CustomControllerContext*>(trans_arg); |
| 204 | auto ctx = customCtx->callbacks["start_app"]; |
| 205 | return ctx->Call<bool>([&](maajs::FunctionType func) { |
| 206 | return func.Call( |
| 207 | { |
| 208 | maajs::StringType::New(func.Env(), intent), |
| 209 | }); |
| 210 | }); |
| 211 | } |
| 212 | |
| 213 | MaaBool CustomStopApp(const char* intent, void* trans_arg) |
| 214 | { |