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

Method getRootView

valdi/src/valdi/runtime/Context/ViewNodeTree.cpp:131–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131Ref<View> ViewNodeTree::getRootView() const {
132 if (_rootView != nullptr) {
133 return _rootView;
134 }
135
136 if (_rootViewNode == nullptr) {
137 return nullptr;
138 }
139
140 return _rootViewNode->getViewAndDisablePooling();
141}
142
143void ViewNodeTree::setRootViewWithDefaultViewClass() {
144 SC_ASSERT_NOTNULL(_viewManager);

Callers 1

Calls 1

Tested by

no test coverage detected