MapboxAnimator

Abstract class for all of the location component animators.

abstract class MapboxAnimator<K> : ValueAnimator, ValueAnimator.AnimatorUpdateListener

Parameters

<K>

< Data type that will be animated.

Constructors

MapboxAnimator
Link copied to clipboard
open fun MapboxAnimator(values: Array<K>, updateListener: MapboxAnimator.AnimationsValueChangeListener<K>, maxAnimationFps: Int)
MapboxAnimator
Link copied to clipboard
open fun MapboxAnimator(updateListener: MapboxAnimator.AnimationsValueChangeListener<K>, target: K, animatedValue: K, minUpdateInterval: Double, timeElapsed: Long)

Types

AnimationsValueChangeListener
Link copied to clipboard
interface AnimationsValueChangeListener<K>
Type
Link copied to clipboard
annotation class Type

Functions

addListener
Link copied to clipboard
open fun addListener(listener: Animator.AnimatorListener)
addPauseListener
Link copied to clipboard
open fun addPauseListener(listener: Animator.AnimatorPauseListener)
addUpdateListener
Link copied to clipboard
open fun addUpdateListener(listener: ValueAnimator.AnimatorUpdateListener)
areAnimatorsEnabled
Link copied to clipboard
open fun areAnimatorsEnabled(): Boolean
cancel
Link copied to clipboard
open fun cancel()
clone
Link copied to clipboard
open fun clone(): Animator
open fun clone(): ValueAnimator
end
Link copied to clipboard
open fun end()
getAnimatedFraction
Link copied to clipboard
open fun getAnimatedFraction(): Float
getAnimatedValue
Link copied to clipboard
open fun getAnimatedValue(): Any
getCurrentPlayTime
Link copied to clipboard
open fun getCurrentPlayTime(): Long
getDuration
Link copied to clipboard
open fun getDuration(): Long
getFrameDelay
Link copied to clipboard
open fun getFrameDelay(): Long
getInterpolator
Link copied to clipboard
open 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 fun getStartDelay(): Long
getTotalDuration
Link copied to clipboard
open 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 fun isRunning(): Boolean
isStarted
Link copied to clipboard
open fun isStarted(): Boolean
makeInvalid
Link copied to clipboard

Makes this animator invalid and prevents it from pushing any more updates to the listener. This can be used to prevent propagating final updates when the animator should be immediately canceled.

open fun makeInvalid()
ofArgb
Link copied to clipboard
open fun ofArgb(values: Array<Int>): ValueAnimator
ofFloat
Link copied to clipboard
open fun ofFloat(values: Array<Float>): ValueAnimator
ofInt
Link copied to clipboard
open fun ofInt(values: Array<Int>): ValueAnimator
ofObject
Link copied to clipboard
open fun ofObject(evaluator: TypeEvaluator, values: Array<Any>): ValueAnimator
ofPropertyValuesHolder
Link copied to clipboard
open fun ofPropertyValuesHolder(values: Array<PropertyValuesHolder>): ValueAnimator
onAnimationUpdate
Link copied to clipboard
abstract fun onAnimationUpdate(p: ValueAnimator)

Called on each animator update.

open fun onAnimationUpdate(animation: ValueAnimator)
pause
Link copied to clipboard
open fun pause()
provideEvaluator
Link copied to clipboard
abstract fun provideEvaluator(): TypeEvaluator
removeAllListeners
Link copied to clipboard
open fun removeAllListeners()
removeAllUpdateListeners
Link copied to clipboard
open fun removeAllUpdateListeners()
removeListener
Link copied to clipboard
open fun removeListener(listener: Animator.AnimatorListener)
removePauseListener
Link copied to clipboard
open fun removePauseListener(listener: Animator.AnimatorPauseListener)
removeUpdateListener
Link copied to clipboard
open fun removeUpdateListener(listener: ValueAnimator.AnimatorUpdateListener)
resume
Link copied to clipboard
open fun resume()
reverse
Link copied to clipboard
open fun reverse()
setCurrentFraction
Link copied to clipboard
open fun setCurrentFraction(fraction: Float)
setCurrentPlayTime
Link copied to clipboard
open fun setCurrentPlayTime(playTime: Long)
setDuration
Link copied to clipboard
abstract fun setDuration(p: Long): Animator
open fun setDuration(duration: Long): ValueAnimator
setEvaluator
Link copied to clipboard
open fun setEvaluator(value: TypeEvaluator)
setFloatValues
Link copied to clipboard
open fun setFloatValues(values: Array<Float>)
setFrameDelay
Link copied to clipboard
open fun setFrameDelay(frameDelay: Long)
setInterpolator
Link copied to clipboard
open fun setInterpolator(value: TimeInterpolator)
setIntValues
Link copied to clipboard
open fun setIntValues(values: Array<Int>)
setObjectValues
Link copied to clipboard
open fun setObjectValues(values: Array<Any>)
setRepeatCount
Link copied to clipboard
open fun setRepeatCount(value: Int)
setRepeatMode
Link copied to clipboard
open fun setRepeatMode(value: Int)
setStartDelay
Link copied to clipboard
open fun setStartDelay(startDelay: Long)
setTarget
Link copied to clipboard
open fun setTarget(target: 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(values: Array<PropertyValuesHolder>)
start
Link copied to clipboard
open fun start()
toString
Link copied to clipboard
open fun toString(): String

Properties

ANIMATOR_LAYER_ACCURACY
Link copied to clipboard
val ANIMATOR_LAYER_ACCURACY: Int
ANIMATOR_LAYER_COMPASS_BEARING
Link copied to clipboard
val ANIMATOR_LAYER_COMPASS_BEARING: Int
ANIMATOR_LAYER_GPS_BEARING
Link copied to clipboard
val ANIMATOR_LAYER_GPS_BEARING: Int
ANIMATOR_LAYER_LATLNG
Link copied to clipboard
val ANIMATOR_LAYER_LATLNG: Int
ANIMATOR_PULSING_CIRCLE
Link copied to clipboard
val ANIMATOR_PULSING_CIRCLE: Int
target
Link copied to clipboard
private val target: K

Inheritors

MapboxLatLngAnimator
Link copied to clipboard
MapboxFloatAnimator
Link copied to clipboard
MapboxPaddingAnimator
Link copied to clipboard