MCPcopy Create free account
hub / github.com/NativeScript/android / RunModule

Method RunModule

test-app/runtime/src/main/cpp/Runtime.cpp:286–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286void Runtime::RunModule(JNIEnv* _env, jobject obj, jstring scriptFile) {
287 JEnv env(_env);
288
289 string filePath = ArgConverter::jstringToString(scriptFile);
290 auto context = this->GetContext();
291 m_module.Load(context, filePath);
292}
293
294void Runtime::RunModule(const char* moduleName) {
295 auto context = this->GetContext();

Callers 2

registerModulesMethod · 0.80

Calls 2

GetContextMethod · 0.95
LoadMethod · 0.80

Tested by 1

registerModulesMethod · 0.64