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

Function CustomStopApp

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

Source from the content-addressed store, hash-verified

211}
212
213MaaBool 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
225MaaBool CustomScreencap(void* trans_arg, MaaImageBuffer* buffer)
226{

Callers

nothing calls this directly

Calls 2

CallMethod · 0.45
EnvMethod · 0.45

Tested by

no test coverage detected