-
Notifications
You must be signed in to change notification settings - Fork 306
APIs
The SVGAPlayer
used to render animation, extends UIView
The current playing video item.
Defaults to 0
.
How many times should animation loops. 0
means Infinity Loop.
Defaults to true
.
Clears canvas after animation stop.
Defaults to Forward
. Could be Forward
, Backward
.
Forward
means animation will pause on last frame after finished.
Backward
means animation will pause on first frame after finished.
SVGAPlayer
send events to delegate object.
Play animation from zero frame.
Play animation in specific range. If reverse sets to true, animation will play from end to start reversely.
Pause animation and stop on current frame.
Stop animation, and clear canvas if clearsAfterStop
sets to true
.
Render specific frame, play from this frame if andPlay
sets to true
.
Render specific percentage frame, the percentage
value should from 0.0
to 1.0
, play from this frame if andPlay
sets to true
.
Dynamic hidden an element.
Dynamic replace an element with a Bitmap.
Dynamic replace an element with a network Bitmap.
Add text above an element.
Draw on element.
Reset all dynamic object.
Parse a svga file from bundle directory.
Parse a remote file from network.
Parse a remote file from network.
Parse a svga file from stream, the cacheKey should be unique betweens files. If closeInputStream
sets to true
, stream will close after parse.
Trigger after animation finished.
Notice: delegate could never trigger when loops = 0.
Trigger after animation play to specific frame.
Trigger after animation play to specific percentage (from 0.0 to 1.0).