CameraAnimator

Base generic class for all camera animators.

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

Constructors

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

Types

Companion
Link copied to clipboard

Static variables and methods.

object Companion

Functions

addListener
Link copied to clipboard

Add an animator listener

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

Add an animator update listener

override fun addUpdateListener(listener: ValueAnimator.AnimatorUpdateListener?)
cancel
Link copied to clipboard
open override fun cancel()
clone
Link copied to clipboard
open override fun clone(): ValueAnimator
end
Link copied to clipboard
open override fun end()
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getAnimatedFraction
Link copied to clipboard
open override fun getAnimatedFraction(): Float
getAnimatedValue
Link copied to clipboard
open override fun getAnimatedValue(): Any
open override fun getAnimatedValue(p0: String): Any
getCurrentPlayTime
Link copied to clipboard
open override 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 override fun getListeners(): ArrayList<Animator.AnimatorListener>
getRepeatCount
Link copied to clipboard
open override fun getRepeatCount(): Int
getRepeatMode
Link copied to clipboard
open override 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 override fun getValues(): Array<PropertyValuesHolder>
hashCode
Link copied to clipboard
open override fun hashCode(): Int
isPaused
Link copied to clipboard
open override 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

Remove all animator listeners

override fun removeAllListeners()
removeAllUpdateListeners
Link copied to clipboard

Remove all update listeners

override fun removeAllUpdateListeners()
removeListener
Link copied to clipboard

Remove an animator listener

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

Remove an animator update listener

override fun removeUpdateListener(listener: ValueAnimator.AnimatorUpdateListener?)
resume
Link copied to clipboard
open override fun resume()
reverse
Link copied to clipboard
open override fun reverse()
setCurrentFraction
Link copied to clipboard
open override fun setCurrentFraction(p0: Float)
setCurrentPlayTime
Link copied to clipboard
open override fun setCurrentPlayTime(p0: Long)
setDuration
Link copied to clipboard
open override fun setDuration(p0: Long): ValueAnimator
setEvaluator
Link copied to clipboard

Set the animator evaluator

override fun setEvaluator(value: TypeEvaluator<*>?)
setFloatValues
Link copied to clipboard
open override fun setFloatValues(vararg p0: FloatArray)
setInterpolator
Link copied to clipboard
open override fun setInterpolator(p0: TimeInterpolator)
setIntValues
Link copied to clipboard
open override fun setIntValues(vararg p0: IntArray)
setObjectValues
Link copied to clipboard

Set the animator object values

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

Start the animator

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

Properties

owner
Link copied to clipboard

Animator owner or creator.

var owner: String?
startValue
Link copied to clipboard

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

val startValue: T?
targets
Link copied to clipboard

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

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

The type of CameraAnimator

abstract val type: CameraAnimatorType