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

Method moveViewToTree

valdi/src/valdi/android/AndroidViewTransaction.cpp:59–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void AndroidViewTransaction::moveViewToTree(const Valdi::Ref<Valdi::View>& view,
60 Valdi::ViewNodeTree* viewNodeTree,
61 Valdi::ViewNode* viewNode) {
62 auto userData = viewNodeTree->getContext()->getUserData();
63 if (userData != nullptr) {
64 auto viewNodeId = viewNode != nullptr ? viewNode->getRawId() : 0;
65 getViewOperations().enqueueMovedToTree(view, Valdi::Value(userData), static_cast<int32_t>(viewNodeId));
66 }
67}
68
69void AndroidViewTransaction::insertChildView(const Valdi::Ref<Valdi::View>& view,
70 const Valdi::Ref<Valdi::View>& childView,

Callers 1

setAttachedDataMethod · 0.45

Calls 5

getUserDataMethod · 0.80
getRawIdMethod · 0.80
enqueueMovedToTreeMethod · 0.80
ValueClass · 0.50
getContextMethod · 0.45

Tested by

no test coverage detected