class KyrieDrawable : Drawable, Animatable
An animatable drawable based on scalable vector graphics.
class Builder
Builder class used to create a KyrieDrawable. |
|
interface Listener
A listener that receives notifications from an animation. Notifications indicate animation related events, such as the start or end of the animation. |
|
abstract class ListenerAdapter : KyrieDrawable.Listener
This adapter class provides empty implementations of the methods from Listener. Any custom listener that cares only about a subset of the methods of this listener can simply subclass this adapter class instead of implementing the interface directly. |
var currentPlayTime: Long
Sets the position of the animation to the specified point in time. This time should be between 0 and the total duration of the animation, including any repetition. |
|
val isPaused: Boolean
Returns true if the animation has been paused. |
|
val isStarted: Boolean
Returns true if the animation has been started. |
|
val totalDuration: Long
Gets the total duration of the animation, accounting for start delay and repeating. Return Animation.INFINITE if the duration is infinite. |
fun addListener(listener: KyrieDrawable.Listener): Unit
Adds a Listener to this KyrieDrawable's set of listeners. |
|
fun clearListeners(): Unit
Removes all Listeners from this KyrieDrawable's set of listeners. |
|
fun draw(canvas: Canvas): Unit |
|
fun getAlpha(): Int |
|
fun getColorFilter(): ColorFilter? |
|
fun getIntrinsicHeight(): Int |
|
fun getIntrinsicWidth(): Int |
|
fun getOpacity(): Int |
|
fun isAutoMirrored(): Boolean |
|
fun isRunning(): Boolean
Returns true if the animation is running. |
|
fun isStateful(): Boolean |
|
fun onStateChange(stateSet: IntArray): Boolean |
|
fun pause(): Unit
Pauses the animation. |
|
fun removeListener(listener: KyrieDrawable.Listener): Unit
Removes a Listener from this KyrieDrawable's set of listeners. |
|
fun resume(): Unit
Resumes the animation. |
|
fun setAlpha(alpha: Int): Unit |
|
fun setAutoMirrored(mirrored: Boolean): Unit |
|
fun setColorFilter(colorFilter: ColorFilter?): Unit |
|
fun setTint(tint: Int): Unit |
|
fun setTintList(tintList: ColorStateList?): Unit |
|
fun setTintMode(tintMode: Mode): Unit |
|
fun start(): Unit
Starts the animation. |
|
fun stop(): Unit
Stops the animation. If the animation is running, it will be canceled. |
fun builder(): KyrieDrawable.Builder
Constructs a new KyrieDrawable.Builder. |
|
fun create(context: Context, resId: Int): KyrieDrawable?
Creates a KyrieDrawable from an existing VectorDrawable or AnimatedVectorDrawable XML file. |