MCPcopy Create free account
hub / github.com/Samsung/rlottie / restart

Method restart

example/lottieview.cpp:216–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216void LottieView::restart()
217{
218 mCurCount--;
219 if (mLoop || mRepeatCount) {
220 if (mRepeatMode == LottieView::RepeatMode::Reverse)
221 mReverse = !mReverse;
222 else
223 mReverse = false;
224
225 if (mAnimator) ecore_animator_del(mAnimator);
226 mAnimator = ecore_animator_timeline_add(duration()/mSpeed, animator, this);
227 }
228}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected