-
Notifications
You must be signed in to change notification settings - Fork 485
APIs
The SVGAImageView
used to render animation, extends android.view.View
Returns current state if is animating.
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.
SVGAImageView
send events to callback 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
.
Stop animation, and clear canvas if clear
sets to true
.
Assign the animation should be render.
Assign the animation should be render, and sets a dynamicItem
options.
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
.
ShareParser should be init(context)
in Application or other Activity.
Assign a fileDownloader
to load resource from assets and network. You may extends it, and implement your downloader.
Parse a svga file from Android assets directory.
Parse a remote file from network.
parse(inputStream: InputStream
, cacheKey: String
, callback: ParseCompletion
, closeInputStream: Boolean = false
)
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 paused.
Trigger after animation finished.
Trigger while animation repeat.
Trigger after animation play to specific frame.
Defaults to true
, render animation without alias.
Returns video width and height.
Dynamic hidden an element.
Dynamic replace an element with a Bitmap.
Dynamic replace an element with a network Bitmap.
Add text above an element.
Add text via StaticLayout
above an element.
Draw on element.
Reset all dynamic object.