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

Method appendAnimation

valdi/src/valdi/snap_drawing/Animations/ValdiAnimator.cpp:34–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32ValdiAnimator::~ValdiAnimator() = default;
33
34void ValdiAnimator::appendAnimation(const Ref<Layer>& view, const Ref<IAnimation>& animation, const String& key) {
35 PendingAnimation pendingAnimation;
36 pendingAnimation.view = view;
37 pendingAnimation.animation = animation;
38 pendingAnimation.key = key;
39
40 _pendingAnimations.emplace_back(std::move(pendingAnimation));
41}
42
43void ValdiAnimator::flushAnimations(const Valdi::Value& completion) {
44 auto group = Valdi::makeShared<Valdi::AsyncGroup>();

Callers 1

setViewFrameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected