Table of Contents

Method SetAnimation

Namespace
SkiaSharp.Extended
Assembly
SkiaSharp.Extended.dll

SetAnimation(Animation?)

Sets the animation to play. Pass null to clear the current animation. Resets playback state (Progress, IsComplete, repeat counters).

public void SetAnimation(Animation? newAnimation)

Parameters

newAnimation Animation

The Animation to play, or null to clear. The player does not take ownership of the animation; the caller is responsible for disposing it.

Remarks

Calling this method always resets Progress to Zero (or Duration when AnimationSpeed is negative) and clears IsComplete. It also raises AnimationUpdated.