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

Method ConvertJsValueToJavaObject

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

Source from the content-addressed store, hash-verified

919}
920
921jobject Runtime::ConvertJsValueToJavaObject(JEnv& env,
922 const Local<Value>& value,
923 int classReturnType) {
924 auto context = this->GetContext();
925 JsArgToArrayConverter argConverter(
926 context, value, false /*is implementation object*/, classReturnType);
927 jobject jr = argConverter.GetConvertedArg();
928 jobject javaResult = nullptr;
929 if (jr != nullptr) {
930 javaResult = env.NewLocalRef(jr);
931 }
932
933 return javaResult;
934}
935
936void Runtime::SetManualInstrumentationMode(jstring mode) {
937 auto modeStr = ArgConverter::jstringToString(mode);

Callers

nothing calls this directly

Calls 3

GetContextMethod · 0.95
GetConvertedArgMethod · 0.80
NewLocalRefMethod · 0.80

Tested by

no test coverage detected