Animator

Types

Link copied to clipboard
class BlockNode(val name: String? = null, val callback: () -> Unit) : NewAnimatorNode
Link copied to clipboard
object Companion
Link copied to clipboard
Link copied to clipboard
class TweenNode(val vs: V2<*>, val lazyVs: Array<out () -> V2<*>>? = null, val time: TimeSpan = 1000.milliseconds, val lazyTime: () -> TimeSpan? = null, val easing: Easing, val name: String? = null) : NewAnimatorNode

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun Animator.alpha(view: View, alpha: Double, time: TimeSpan = this.defaultTime, easing: Easing = this.defaultEasing)
fun Animator.alpha(view: View, alpha: Float, time: TimeSpan = this.defaultTime, easing: Easing = this.defaultEasing)
fun Animator.alpha(view: View, alpha: Int, time: TimeSpan = this.defaultTime, easing: Easing = this.defaultEasing)
Link copied to clipboard
suspend fun await(completeOnCancel: Boolean = false)

Suspends until this animation has been completed

Link copied to clipboard
suspend fun awaitComplete(completeOnCancel: Boolean = false)

Suspends until this animation has been completed

Link copied to clipboard
fun Animator.block(name: String? = null, callback: () -> Unit)
Link copied to clipboard

Cancels and clears all the pending animations keeping the properties as they are when executing this function.

open override fun cancel(e: Throwable)
Link copied to clipboard
open override fun close()
Link copied to clipboard

Finishes all the pending animations and sets all the properties to their final state.

Link copied to clipboard
fun Animator.hide(view: View, time: TimeSpan = this.defaultTime, easing: Easing = this.defaultEasing)
Link copied to clipboard
fun Animator.moveBy(view: View, x: Double = 0.0, y: Double = 0.0, time: TimeSpan = this.defaultTime, easing: Easing = this.defaultEasing)
fun Animator.moveBy(view: View, x: Number = 0.0, y: Number = 0.0, time: TimeSpan = this.defaultTime, easing: Easing = this.defaultEasing)
Link copied to clipboard
fun Animator.moveByWithSpeed(view: View, x: Double = 0.0, y: Double = 0.0, speed: Double = this.defaultSpeed, easing: Easing = this.defaultEasing)
fun Animator.moveByWithSpeed(view: View, x: Number = 0.0, y: Number = 0.0, speed: Double = this.defaultSpeed, easing: Easing = this.defaultEasing)
Link copied to clipboard
fun Animator.moveInPath(view: View, points: PointList, time: TimeSpan = this.defaultTime, lazyTime: () -> TimeSpan? = null, easing: Easing = this.defaultEasing)
fun Animator.moveInPath(view: View, path: VectorPath, includeLastPoint: Boolean = true, time: TimeSpan = this.defaultTime, lazyTime: () -> TimeSpan? = null, easing: Easing = this.defaultEasing)
Link copied to clipboard
fun Animator.moveInPathWithSpeed(view: View, points: PointList, speed: () -> Number = { this.defaultSpeed }, easing: Easing = this.defaultEasing)
fun Animator.moveInPathWithSpeed(view: View, path: VectorPath, includeLastPoint: Boolean = true, speed: () -> Number = { this.defaultSpeed }, easing: Easing = this.defaultEasing)
Link copied to clipboard
fun Animator.moveTo(view: View, x: Double, y: Double, time: TimeSpan = this.defaultTime, easing: Easing = this.defaultEasing)
fun Animator.moveTo(view: View, x: Float, y: Float, time: TimeSpan = this.defaultTime, easing: Easing = this.defaultEasing)
fun Animator.moveTo(view: View, x: Int, y: Int, time: TimeSpan = this.defaultTime, easing: Easing = this.defaultEasing)
fun Animator.moveTo(view: View, x: () -> Number = { view.x }, y: () -> Number = { view.y }, time: TimeSpan = this.defaultTime, lazyTime: () -> TimeSpan? = null, easing: Easing = this.defaultEasing)
Link copied to clipboard
fun Animator.moveToWithSpeed(view: View, x: Double, y: Double, speed: Double = this.defaultSpeed, easing: Easing = this.defaultEasing)
fun Animator.moveToWithSpeed(view: View, x: Float, y: Float, speed: Number = this.defaultSpeed, easing: Easing = this.defaultEasing)
fun Animator.moveToWithSpeed(view: View, x: () -> Number = { view.x }, y: () -> Number = { view.y }, speed: () -> Number = { this.defaultSpeed }, easing: Easing = this.defaultEasing)
fun Animator.moveToWithSpeed(view: View, x: Int, y: Int, speed: Number = this.defaultSpeed, easing: Easing = this.defaultEasing)
Link copied to clipboard
inline fun parallel(time: TimeSpan = this.defaultTime, speed: Double = this.defaultSpeed, easing: Easing = this.defaultEasing, looped: Boolean = false, startImmediately: Boolean = this.startImmediately, callback: Animator.() -> Unit): Animator
Link copied to clipboard
fun parallelLazy(time: TimeSpan = this.defaultTime, speed: Double = this.defaultSpeed, easing: Easing = this.defaultEasing, looped: Boolean = false, startImmediately: Boolean = this.startImmediately, init: Animator.() -> Unit): Animator
Link copied to clipboard
Link copied to clipboard
fun Animator.rotateBy(view: View, rotation: Angle, time: TimeSpan = this.defaultTime, easing: Easing = this.defaultEasing)
Link copied to clipboard
fun Animator.rotateTo(view: View, angle: Angle, time: TimeSpan = this.defaultTime, easing: Easing = this.defaultEasing)
fun Animator.rotateTo(view: View, rotation: () -> Angle, time: TimeSpan = this.defaultTime, lazyTime: () -> TimeSpan? = null, easing: Easing = this.defaultEasing)
Link copied to clipboard
fun Animator.scaleBy(view: View, scaleX: Double, scaleY: Double = scaleX, time: TimeSpan = this.defaultTime, easing: Easing = this.defaultEasing)
Link copied to clipboard
fun Animator.scaleTo(view: View, scaleX: Double, scaleY: Double = scaleX, time: TimeSpan = this.defaultTime, easing: Easing = this.defaultEasing)
fun Animator.scaleTo(view: View, scaleX: Float, scaleY: Float = scaleX, time: TimeSpan = this.defaultTime, easing: Easing = this.defaultEasing)
fun Animator.scaleTo(view: View, scaleX: Int, scaleY: Int = scaleX, time: TimeSpan = this.defaultTime, easing: Easing = this.defaultEasing)
fun Animator.scaleTo(view: View, scaleX: () -> Number, scaleY: () -> Number = scaleX, time: TimeSpan = this.defaultTime, lazyTime: () -> TimeSpan? = null, easing: Easing = this.defaultEasing)
Link copied to clipboard
inline fun sequence(defaultTime: TimeSpan = this.defaultTime, defaultSpeed: Double = this.defaultSpeed, easing: Easing = this.defaultEasing, looped: Boolean = false, startImmediately: Boolean = this.startImmediately, callback: Animator.() -> Unit): Animator
Link copied to clipboard
fun sequenceLazy(time: TimeSpan = this.defaultTime, speed: Double = this.defaultSpeed, easing: Easing = this.defaultEasing, looped: Boolean = false, startImmediately: Boolean = this.startImmediately, init: Animator.() -> Unit): Animator
Link copied to clipboard
fun Animator.show(view: View, time: TimeSpan = this.defaultTime, easing: Easing = this.defaultEasing)
Link copied to clipboard
fun Animator.tween(vararg vs: V2<*>, time: TimeSpan = this.defaultTime, easing: Easing = this.defaultEasing, name: String? = null, replace: Boolean = true)
Link copied to clipboard
fun Animator.tweenLazy(vararg vs: () -> V2<*>, time: TimeSpan = this.defaultTime, easing: Easing = this.defaultEasing, name: String? = null)
Link copied to clipboard
fun Animator.tweenLazyLazyTime(vararg vs: () -> V2<*>, time: () -> TimeSpan = { this.defaultTime }, easing: Easing = this.defaultEasing, name: String? = null)
Link copied to clipboard
fun Animator.tweenLazyTime(vararg vs: V2<*>, time: () -> TimeSpan = { this.defaultTime }, easing: Easing = this.defaultEasing, name: String? = null, replace: Boolean = true)
Link copied to clipboard
fun Animator.wait(time: TimeSpan = this.defaultTime)
Link copied to clipboard
fun Animator.waitLazy(time: () -> TimeSpan)