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

Function doSetRootViewToContext

valdi/src/valdi/android/NativeBridge.cpp:507–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

505}
506
507void doSetRootViewToContext(jlong contextHandle, const Valdi::Ref<Valdi::View>& rootView) {
508 auto viewNodeTree = getViewNodeTree(contextHandle);
509
510 if (viewNodeTree == nullptr) {
511 return;
512 }
513
514 viewNodeTree->setRootView(rootView);
515}
516
517void ValdiAndroid::NativeBridge::setRootView( // NOLINT
518 fbjni::alias_ref<fbjni::JClass> /* clazz */, // NOLINT

Callers 2

setRootViewMethod · 0.85

Calls 2

getViewNodeTreeFunction · 0.85
setRootViewMethod · 0.45

Tested by

no test coverage detected