MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / CustomStartApp

Function CustomStartApp

source/binding/NodeJS/src/apis/callback.cpp:201–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201MaaBool 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
213MaaBool CustomStopApp(const char* intent, void* trans_arg)
214{

Callers

nothing calls this directly

Calls 2

CallMethod · 0.45
EnvMethod · 0.45

Tested by

no test coverage detected