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

Function getViewNodeTree

valdi/src/valdi/android/NativeBridge.cpp:79–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79static Valdi::SharedViewNodeTree getViewNodeTree(jlong contextHandle) {
80 auto context = getContext(contextHandle);
81 if (context == nullptr) {
82 return nullptr;
83 }
84
85 auto* runtime = context->getRuntime();
86 if (runtime == nullptr) {
87 return nullptr;
88 }
89
90 return runtime->getOrCreateViewNodeTreeForContextId(context->getContextId());
91}
92
93Valdi::Ref<Valdi::ViewNode> getViewNode(jlong viewNodeHandle) {
94 return ValdiAndroid::bridge<Valdi::ViewNode>(viewNodeHandle);

Callers 15

setParentContextMethod · 0.85
doSetRootViewToContextFunction · 0.85
getViewInContextForIdMethod · 0.85
onNextLayoutMethod · 0.85
measureLayoutMethod · 0.85
setLayoutSpecsMethod · 0.85
setVisibleViewportMethod · 0.85

Calls 4

getContextFunction · 0.70
getRuntimeMethod · 0.45
getContextIdMethod · 0.45

Tested by

no test coverage detected