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

Method enqueueResetAttribute

valdi/src/valdi/android/DeferredViewOperations.cpp:60–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void DeferredViewOperations::enqueueResetAttribute(const Valdi::Ref<Valdi::View>& view,
61 const Valdi::Value& handler,
62 const Valdi::Ref<Valdi::Animator>& animator) {
63 if (view == nullptr) {
64 // Skip enqueueing the reset operation since the View no longer exists
65 return;
66 }
67
68 updateActiveAnimator(animator);
69
70 auto& buffer = writeHeader(ViewOperationResetAttribute, false);
71 write(buffer, handler);
72 write(buffer, Valdi::Value(view));
73}
74
75void DeferredViewOperations::updateActiveAnimator(const Valdi::Ref<Valdi::Animator>& animator) {
76 if (_lastAnimator != animator) {

Callers 1

onResetMethod · 0.80

Calls 1

ValueClass · 0.50

Tested by

no test coverage detected