Action

open class Action(source)

Holds information about a smooth scroll request by a SmoothScroller.

Constructors

Link copied to clipboard
constructor(@Px dx: Int, @Px dy: Int)
constructor(@Px dx: Int, @Px dy: Int, duration: Int)
constructor(@Px dx: Int, @Px dy: Int, duration: Int, @Nullable interpolator: Interpolator)

Properties

Link copied to clipboard
val UNDEFINED_DURATION: Int = -2147483648

Functions

Link copied to clipboard
open fun getDuration(): Int
Link copied to clipboard
open fun getDx(): Int
Link copied to clipboard
open fun getDy(): Int
Link copied to clipboard
Link copied to clipboard
open fun jumpTo(targetPosition: Int)
Instead of specifying pixels to scroll, use the target position to jump using scrollToPosition.
Link copied to clipboard
open fun setDuration(duration: Int)
Link copied to clipboard
open fun setDx(@Px dx: Int)
Link copied to clipboard
open fun setDy(@Px dy: Int)
Link copied to clipboard
open fun setInterpolator(@Nullable interpolator: Interpolator)
Sets the interpolator to calculate scroll steps
Link copied to clipboard
open fun update(@Px dx: Int, @Px dy: Int, duration: Int, @Nullable interpolator: Interpolator)
Updates the action with given parameters.