CameraAnimator

abstract class CameraAnimator<out T>(evaluator: TypeEvaluator<T>, cameraAnimatorOptions: CameraAnimatorOptions<out T>) : ValueAnimator

Base generic class for all camera animators.

Constructors

CameraAnimator
Link copied to clipboard
fun <out T> CameraAnimator(evaluator: TypeEvaluator<T>, cameraAnimatorOptions: CameraAnimatorOptions<out T>)

Types

Companion
Link copied to clipboard
object Companion

Static variables and methods.

Functions

addListener
Link copied to clipboard
override fun addListener(listener: Animator.AnimatorListener?)

Add an animator listener

addPauseListener
Link copied to clipboard
open fun addPauseListener(p0: Animator.AnimatorPauseListener)
addUpdateListener
Link copied to clipboard
override fun addUpdateListener(listener: ValueAnimator.AnimatorUpdateListener?)

Add an animator update listener

cancel
Link copied to clipboard
override fun cancel()

Cancels the animation. Unlike end(), cancel() causes the animation to stop in its tracks, sending an Animator.AnimatorListener.onAnimationCancel(Animator) to its listeners, followed by an Animator.AnimatorListener.onAnimationEnd(Animator) message.

clone
Link copied to clipboard
open override fun clone(): ValueAnimator
end
Link copied to clipboard
open override fun end()
getAnimatedFraction
Link copied to clipboard
open fun getAnimatedFraction(): Float
getAnimatedValue
Link copied to clipboard
open fun getAnimatedValue(): Any
open fun getAnimatedValue(p0: String): Any
getCurrentPlayTime
Link copied to clipboard
open fun getCurrentPlayTime(): Long
getDuration
Link copied to clipboard
open override fun getDuration(): Long
getInterpolator
Link copied to clipboard
open override fun getInterpolator(): TimeInterpolator
getListeners
Link copied to clipboard
open fun getListeners(): ArrayList<Animator.AnimatorListener>
getRepeatCount
Link copied to clipboard
open fun getRepeatCount(): Int
getRepeatMode
Link copied to clipboard
open fun getRepeatMode(): Int
getStartDelay
Link copied to clipboard
open override fun getStartDelay(): Long
getTotalDuration
Link copied to clipboard
open override fun getTotalDuration(): Long
getValues
Link copied to clipboard
open fun getValues(): Array<PropertyValuesHolder>
isPaused
Link copied to clipboard
open fun isPaused(): Boolean
isRunning
Link copied to clipboard
open override fun isRunning(): Boolean
isStarted
Link copied to clipboard
open override fun isStarted(): Boolean
pause
Link copied to clipboard
open override fun pause()
removeAllListeners
Link copied to clipboard
override fun removeAllListeners()

Remove all animator listeners

removeAllUpdateListeners
Link copied to clipboard
override fun removeAllUpdateListeners()

Remove all update listeners

removeListener
Link copied to clipboard
override fun removeListener(listener: Animator.AnimatorListener?)

Remove an animator listener

removePauseListener
Link copied to clipboard
open fun removePauseListener(p0: Animator.AnimatorPauseListener)
removeUpdateListener
Link copied to clipboard
override fun removeUpdateListener(listener: ValueAnimator.AnimatorUpdateListener?)

Remove an animator update listener

resume
Link copied to clipboard
open override fun resume()
reverse
Link copied to clipboard
open fun reverse()
setCurrentFraction
Link copied to clipboard
open fun setCurrentFraction(p0: Float)
setCurrentPlayTime
Link copied to clipboard
open fun setCurrentPlayTime(p0: Long)
setDuration
Link copied to clipboard
open override fun setDuration(p0: Long): ValueAnimator
setEvaluator
Link copied to clipboard
override fun setEvaluator(value: TypeEvaluator<*>?)

Set the animator evaluator

setFloatValues
Link copied to clipboard
open fun setFloatValues(vararg p0: Float)
setInterpolator
Link copied to clipboard
open override fun setInterpolator(p0: TimeInterpolator)
setIntValues
Link copied to clipboard
open fun setIntValues(vararg p0: Int)
setObjectValues
Link copied to clipboard
override fun setObjectValues(vararg values: Any?)

Set the animator object values

setRepeatCount
Link copied to clipboard
open fun setRepeatCount(p0: Int)
setRepeatMode
Link copied to clipboard
open fun setRepeatMode(p0: Int)
setStartDelay
Link copied to clipboard
open override fun setStartDelay(p0: Long)
setTarget
Link copied to clipboard
open fun setTarget(p0: Any?)
setupEndValues
Link copied to clipboard
open fun setupEndValues()
setupStartValues
Link copied to clipboard
open fun setupStartValues()
setValues
Link copied to clipboard
open fun setValues(vararg p0: PropertyValuesHolder)
start
Link copied to clipboard
override fun start()

Start the animator

toString
Link copied to clipboard
open override fun toString(): String

Properties

owner
Link copied to clipboard
var owner: String?

Animator owner or creator.

startValue
Link copied to clipboard
val startValue: T?

Start animation value, will use current map value option from CameraOptions if null.

targets
Link copied to clipboard
val targets: Array<out T>

Sets the values to animate between for this animation (except start value).

type
Link copied to clipboard
abstract val type: CameraAnimatorType

The type of CameraAnimator