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

Method setParentContext

valdi/src/valdi/android/NativeBridge.cpp:478–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476}
477
478void ValdiAndroid::NativeBridge::setParentContext( // NOLINT
479 fbjni::alias_ref<fbjni::JClass> /* clazz */, // NOLINT
480 jlong contextHandle,
481 jlong parentContextHandle) {
482 auto viewNodeTree = getViewNodeTree(contextHandle);
483 auto parentViewNodeTree = getViewNodeTree(parentContextHandle);
484
485 if (viewNodeTree != nullptr) {
486 viewNodeTree->setParentTree(parentViewNodeTree);
487 }
488}
489
490jobject ValdiAndroid::NativeBridge::getViewNodeBackingView( // NOLINT
491 fbjni::alias_ref<fbjni::JClass> /* clazz */, // NOLINT

Callers 1

pushComponentMethod · 0.45

Calls 2

getViewNodeTreeFunction · 0.85
setParentTreeMethod · 0.80

Tested by

no test coverage detected