AnimationControlAnimationControl is intentionally minimal:
OnAnimationFrame(TimeSpan now, TimeSpan last) before invalidating the control.There is no explicit Start() or Pause() API in this package. If you need those semantics, move up to CompositionAnimatedControl.
CompositionAnimatedControlCompositionAnimatedControl adds a higher-level playback model on top of a composition custom visual:
Start(), Stop(), Pause(), Resume()Seek(TimeSpan position)RepeatCountPlaybackRatePositionRedraw()It also raises:
Update(TimeSpan delta)StartedStoppedDisposedCustom subclasses can override OnNormalizeElapsed(TimeSpan elapsed) to map absolute elapsed time into:
HasLooped flag.That is how Lottie turns an ever-increasing clock into loop-aware playback for the current animation duration.
Not every Skia-backed control in this repository is continuously animated. CompositionAnimatedControl supports static redraw mode:
Start(),Redraw() when the visual needs another render pass.The StaticRedrawControl sample in samples/CompositionAnimatedControlDemo demonstrates this pattern.