MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getViewNodeBackingView

Method getViewNodeBackingView

valdi/src/valdi/android/NativeBridge.cpp:490–505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

488 if (context != nullptr) {
489 context->onCreate();
490 }
491}
492
493void ValdiAndroid::NativeBridge::updateResource( // NOLINT
494 fbjni::alias_ref<fbjni::JClass> /* clazz */, // NOLINT
495 jlong runtimeHandle,
496 jbyteArray resource,
497 jstring bundleName,
498 jstring filePathWithinBundle) {
499 auto* runtime = getRuntime(runtimeHandle);
500 if (runtime == nullptr) {
501 return;
502 }
503
504 auto javaEnv = ValdiAndroid::JavaEnv();
505 auto bytes = ValdiAndroid::toByteArray(javaEnv, resource);
506 auto cppBundleName = ValdiAndroid::toInternedString(javaEnv, bundleName);
507 auto cppFilePathWithinBundle = ValdiAndroid::toInternedString(javaEnv, filePathWithinBundle);
508

Callers

nothing calls this directly

Calls 4

getViewNodeFunction · 0.85
releaseObjectMethod · 0.65

Tested by

no test coverage detected