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

Method setViewTreeNeedsUpdate

valdi/src/valdi/runtime/Context/ViewNode.cpp:355–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353 getChildAt(i - 1)->removeViewFromParent(viewTransactionScope, false);
354 }
355 }
356 setView(viewTransactionScope, nullptr, nullptr);
357 return true;
358 } else {
359 return false;
360 }
361}
362
363bool ViewNode::createView(ViewTransactionScope& viewTransactionScope, const Ref<Animator>& animator) {
364 if (hasView() || isLayout() || _viewNodeTree == nullptr || _viewFactory == nullptr) {
365 return false;
366 }
367
368 auto view = _viewFactory->createView(_viewNodeTree, this, true);
369
370 if (view != nullptr) {
371 viewTransactionScope.transaction().moveViewToTree(view, _viewNodeTree, this);

Callers 2

setViewToRootViewNodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected