# ScrollerCompat

# ScrollerCompat

Artifact:[androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core)  
[View Source](https://cs.android.com/search?q=file:androidx/core/widget/ScrollerCompat.java+class:androidx.core.widget.ScrollerCompat)  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/core/widget/ScrollerCompat "View this page in Java")

<br />

```
class ScrollerCompat
```

<br />

*** ** * ** ***

| **This class is deprecated.**   
|
| Use[OverScroller](https://developer.android.com/reference/android/widget/OverScroller.html)directly.

Provides access to new[Scroller](https://developer.android.com/reference/android/widget/Scroller.html)APIs when available.

This class provides a platform version-independent mechanism for obeying the current device's preferred scroll physics and fling behavior. It offers a subset of the APIs from Scroller or OverScroller.

## Summary

|                                                 ### Public functions                                                  |
|-----------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                         | ~~[abortAnimation](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#abortAnimation())~~`()` **This function is deprecated.** Use[abortAnimation](https://developer.android.com/reference/android/widget/OverScroller.html#abortAnimation())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                   | ~~[computeScrollOffset](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#computeScrollOffset())~~`()` **This function is deprecated.** Use[computeScrollOffset](https://developer.android.com/reference/android/widget/OverScroller.html#computeScrollOffset())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `java-static `[ScrollerCompat](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat)`!` | ~~[create](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#create(android.content.Context))~~`(context: `[Context](https://developer.android.com/reference/android/content/Context.html)`!)` **This function is deprecated.** Use[OverScroller](https://developer.android.com/reference/android/widget/OverScroller.html)constructor directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `java-static `[ScrollerCompat](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat)`!` | ~~[create](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#create(android.content.Context,android.view.animation.Interpolator))~~`(context: `[Context](https://developer.android.com/reference/android/content/Context.html)`!, interpolator: `[Interpolator](https://developer.android.com/reference/android/view/animation/Interpolator.html)`!)` **This function is deprecated.** Use[OverScroller](https://developer.android.com/reference/android/widget/OverScroller.html)constructor directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                         | ~~[fling](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#fling(int,int,int,int,int,int,int,int))~~`(` ` startX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` startY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` velocityX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` velocityY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` minX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` maxX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` minY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` maxY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) `)` **This function is deprecated.** Use[fling](https://developer.android.com/reference/android/widget/OverScroller.html#fling(int, int, int, int, int, int, int, int))directly. <br />                                                                                                                                                                                                     |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                         | ~~[fling](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#fling(int,int,int,int,int,int,int,int,int,int))~~`(` ` startX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` startY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` velocityX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` velocityY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` minX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` maxX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` minY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` maxY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` overX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` overY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) `)` **This function is deprecated.** Use[fling](https://developer.android.com/reference/android/widget/OverScroller.html#fling(int, int, int, int, int, int, int, int, int, int))directly. <br /> |
| [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)                                       | ~~[getCurrVelocity](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#getCurrVelocity())~~`()` **This function is deprecated.** Use[getCurrVelocity](https://developer.android.com/reference/android/widget/OverScroller.html#getCurrVelocity())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                           | ~~[getCurrX](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#getCurrX())~~`()` **This function is deprecated.** Use[getCurrX](https://developer.android.com/reference/android/widget/OverScroller.html#getCurrX())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                           | ~~[getCurrY](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#getCurrY())~~`()` **This function is deprecated.** Use[getCurrY](https://developer.android.com/reference/android/widget/OverScroller.html#getCurrY())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                           | ~~[getFinalX](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#getFinalX())~~`()` **This function is deprecated.** Use[getFinalX](https://developer.android.com/reference/android/widget/OverScroller.html#getFinalX())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                           | ~~[getFinalY](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#getFinalY())~~`()` **This function is deprecated.** Use[getFinalY](https://developer.android.com/reference/android/widget/OverScroller.html#getFinalY())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                   | ~~[isFinished](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#isFinished())~~`()` **This function is deprecated.** Use[isFinished](https://developer.android.com/reference/android/widget/OverScroller.html#isFinished())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                   | ~~[isOverScrolled](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#isOverScrolled())~~`()` **This function is deprecated.** Use[isOverScrolled](https://developer.android.com/reference/android/widget/OverScroller.html#isOverScrolled())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                         | ~~[notifyHorizontalEdgeReached](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#notifyHorizontalEdgeReached(int,int,int))~~`(startX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, finalX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, overX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` **This function is deprecated.** Use[notifyHorizontalEdgeReached](https://developer.android.com/reference/android/widget/OverScroller.html#notifyHorizontalEdgeReached(int, int, int))directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                         | ~~[notifyVerticalEdgeReached](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#notifyVerticalEdgeReached(int,int,int))~~`(startY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, finalY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, overY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` **This function is deprecated.** Use[notifyVerticalEdgeReached](https://developer.android.com/reference/android/widget/OverScroller.html#notifyVerticalEdgeReached(int, int, int))directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                   | ~~[springBack](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#springBack(int,int,int,int,int,int))~~`(startX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, startY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, minX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, maxX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, minY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, maxY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` **This function is deprecated.** Use[springBack](https://developer.android.com/reference/android/widget/OverScroller.html#springBack(int, int, int, int, int, int))directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                         | ~~[startScroll](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#startScroll(int,int,int,int))~~`(startX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, startY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, dx: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, dy: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` **This function is deprecated.** Use[getCurrX](https://developer.android.com/reference/android/widget/OverScroller.html#getCurrX())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                         | ~~[startScroll](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#startScroll(int,int,int,int,int))~~`(startX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, startY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, dx: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, dy: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, duration: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` **This function is deprecated.** Use[startScroll](https://developer.android.com/reference/android/widget/OverScroller.html#startScroll(int, int, int, int, int))directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |

## Public functions

### abortAnimation

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [abortAnimation](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#abortAnimation())(): Unit
```
| **This function is deprecated.**   
|
| Use[abortAnimation](https://developer.android.com/reference/android/widget/OverScroller.html#abortAnimation())directly.

Stops the animation. Aborting the animation causes the scroller to move to the final x and y position.  

### computeScrollOffset

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [computeScrollOffset](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#computeScrollOffset())(): Boolean
```
| **This function is deprecated.**   
|
| Use[computeScrollOffset](https://developer.android.com/reference/android/widget/OverScroller.html#computeScrollOffset())directly.

Call this when you want to know the new location. If it returns true, the animation is not yet finished. loc will be altered to provide the new location.  

### create

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
java-static fun [create](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#create(android.content.Context))(context: Context!): ScrollerCompat!
```
| **This function is deprecated.**   
|
Use[OverScroller](https://developer.android.com/reference/android/widget/OverScroller.html)constructor directly.  

### create

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
java-static fun [create](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#create(android.content.Context,android.view.animation.Interpolator))(context: Context!, interpolator: Interpolator!): ScrollerCompat!
```
| **This function is deprecated.**   
|
Use[OverScroller](https://developer.android.com/reference/android/widget/OverScroller.html)constructor directly.  

### fling

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [fling](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#fling(int,int,int,int,int,int,int,int))(
    startX: Int,
    startY: Int,
    velocityX: Int,
    velocityY: Int,
    minX: Int,
    maxX: Int,
    minY: Int,
    maxY: Int
): Unit
```
| **This function is deprecated.**   
|
| Use[fling](https://developer.android.com/reference/android/widget/OverScroller.html#fling(int, int, int, int, int, int, int, int))directly.

Start scrolling based on a fling gesture. The distance travelled will depend on the initial velocity of the fling.  

|                                        Parameters                                        |
|------------------------------------------------------------------------------------------|------------------------------------------------------------------|
| `startX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)    | Starting point of the scroll (X)                                 |
| `startY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)    | Starting point of the scroll (Y)                                 |
| `velocityX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | Initial velocity of the fling (X) measured in pixels per second. |
| `velocityY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | Initial velocity of the fling (Y) measured in pixels per second  |
| `minX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)      | Minimum X value. The scroller will not scroll past this point.   |
| `maxX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)      | Maximum X value. The scroller will not scroll past this point.   |
| `minY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)      | Minimum Y value. The scroller will not scroll past this point.   |
| `maxY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)      | Maximum Y value. The scroller will not scroll past this point.   |

### fling

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [fling](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#fling(int,int,int,int,int,int,int,int,int,int))(
    startX: Int,
    startY: Int,
    velocityX: Int,
    velocityY: Int,
    minX: Int,
    maxX: Int,
    minY: Int,
    maxY: Int,
    overX: Int,
    overY: Int
): Unit
```
| **This function is deprecated.**   
|
| Use[fling](https://developer.android.com/reference/android/widget/OverScroller.html#fling(int, int, int, int, int, int, int, int, int, int))directly.

Start scrolling based on a fling gesture. The distance travelled will depend on the initial velocity of the fling.  

|                                        Parameters                                        |
|------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------|
| `startX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)    | Starting point of the scroll (X)                                                    |
| `startY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)    | Starting point of the scroll (Y)                                                    |
| `velocityX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | Initial velocity of the fling (X) measured in pixels per second.                    |
| `velocityY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | Initial velocity of the fling (Y) measured in pixels per second                     |
| `minX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)      | Minimum X value. The scroller will not scroll past this point.                      |
| `maxX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)      | Maximum X value. The scroller will not scroll past this point.                      |
| `minY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)      | Minimum Y value. The scroller will not scroll past this point.                      |
| `maxY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)      | Maximum Y value. The scroller will not scroll past this point.                      |
| `overX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)     | Overfling range. If \>0, horizontal overfling in either direction will be possible. |
| `overY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)     | Overfling range. If \>0, vertical overfling in either direction will be possible.   |

### getCurrVelocity

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [getCurrVelocity](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#getCurrVelocity())(): Float
```
| **This function is deprecated.**   
|
| Use[getCurrVelocity](https://developer.android.com/reference/android/widget/OverScroller.html#getCurrVelocity())directly.

Returns the current velocity on platform versions that support it.

This method should only be used as input for nonessential visual effects such as[EdgeEffectCompat](https://developer.android.com/reference/kotlin/androidx/core/widget/EdgeEffectCompat).  

|                                     Returns                                     |
|---------------------------------------------------------------------------------|----------------------------------------------------------------------|
| [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | The original velocity less the deceleration. Result may be negative. |

### getCurrX

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [getCurrX](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#getCurrX())(): Int
```
| **This function is deprecated.**   
|
| Use[getCurrX](https://developer.android.com/reference/android/widget/OverScroller.html#getCurrX())directly.

Returns the current X offset in the scroll.  

|                                   Returns                                   |
|-----------------------------------------------------------------------------|-----------------------------------------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The new X offset as an absolute distance from the origin. |

### getCurrY

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [getCurrY](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#getCurrY())(): Int
```
| **This function is deprecated.**   
|
| Use[getCurrY](https://developer.android.com/reference/android/widget/OverScroller.html#getCurrY())directly.

Returns the current Y offset in the scroll.  

|                                   Returns                                   |
|-----------------------------------------------------------------------------|-----------------------------------------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The new Y offset as an absolute distance from the origin. |

### getFinalX

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [getFinalX](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#getFinalX())(): Int
```
| **This function is deprecated.**   
|
Use[getFinalX](https://developer.android.com/reference/android/widget/OverScroller.html#getFinalX())directly.  

|                                   Returns                                   |
|-----------------------------------------------------------------------------|------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The final X position for the scroll in progress, if known. |

### getFinalY

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [getFinalY](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#getFinalY())(): Int
```
| **This function is deprecated.**   
|
Use[getFinalY](https://developer.android.com/reference/android/widget/OverScroller.html#getFinalY())directly.  

|                                   Returns                                   |
|-----------------------------------------------------------------------------|------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The final Y position for the scroll in progress, if known. |

### isFinished

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [isFinished](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#isFinished())(): Boolean
```
| **This function is deprecated.**   
|
| Use[isFinished](https://developer.android.com/reference/android/widget/OverScroller.html#isFinished())directly.

Returns whether the scroller has finished scrolling.  

|                                       Returns                                       |
|-------------------------------------------------------------------------------------|---------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | True if the scroller has finished scrolling, false otherwise. |

### isOverScrolled

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [isOverScrolled](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#isOverScrolled())(): Boolean
```
| **This function is deprecated.**   
|
| Use[isOverScrolled](https://developer.android.com/reference/android/widget/OverScroller.html#isOverScrolled())directly.

Returns whether the current Scroller is currently returning to a valid position. Valid bounds were provided by the[fling](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#fling(int,int,int,int,int,int,int,int,int,int))method. One should check this value before calling[startScroll](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#startScroll(int,int,int,int))as the interpolation currently in progress to restore a valid position will then be stopped. The caller has to take into account the fact that the started scroll will start from an overscrolled position.  

|                                       Returns                                       |
|-------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | true when the current position is overscrolled and in the process of interpolating back to a valid value. |

### notifyHorizontalEdgeReached

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [notifyHorizontalEdgeReached](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#notifyHorizontalEdgeReached(int,int,int))(startX: Int, finalX: Int, overX: Int): Unit
```
| **This function is deprecated.**   
|
| Use[notifyHorizontalEdgeReached](https://developer.android.com/reference/android/widget/OverScroller.html#notifyHorizontalEdgeReached(int, int, int))directly.

Notify the scroller that we've reached a horizontal boundary. Normally the information to handle this will already be known when the animation is started, such as in a call to one of the fling functions. However there are cases where this cannot be known in advance. This function will transition the current motion and animate from startX to finalX as appropriate.  

|                                      Parameters                                       |
|---------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|
| `startX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | Starting/current X position                                                                                                  |
| `finalX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | Desired final X position                                                                                                     |
| `overX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)  | Magnitude of overscroll allowed. This should be the maximum desired distance from finalX. Absolute value - must be positive. |

### notifyVerticalEdgeReached

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [notifyVerticalEdgeReached](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#notifyVerticalEdgeReached(int,int,int))(startY: Int, finalY: Int, overY: Int): Unit
```
| **This function is deprecated.**   
|
| Use[notifyVerticalEdgeReached](https://developer.android.com/reference/android/widget/OverScroller.html#notifyVerticalEdgeReached(int, int, int))directly.

Notify the scroller that we've reached a vertical boundary. Normally the information to handle this will already be known when the animation is started, such as in a call to one of the fling functions. However there are cases where this cannot be known in advance. This function will animate a parabolic motion from startY to finalY.  

|                                      Parameters                                       |
|---------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|
| `startY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | Starting/current Y position                                                                                                  |
| `finalY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | Desired final Y position                                                                                                     |
| `overY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)  | Magnitude of overscroll allowed. This should be the maximum desired distance from finalY. Absolute value - must be positive. |

### springBack

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [springBack](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#springBack(int,int,int,int,int,int))(startX: Int, startY: Int, minX: Int, maxX: Int, minY: Int, maxY: Int): Boolean
```
| **This function is deprecated.**   
|
| Use[springBack](https://developer.android.com/reference/android/widget/OverScroller.html#springBack(int, int, int, int, int, int))directly.

Call this when you want to 'spring back' into a valid coordinate range.  

|                                      Parameters                                       |
|---------------------------------------------------------------------------------------|-----------------------|
| `startX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | Starting X coordinate |
| `startY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | Starting Y coordinate |
| `minX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)   | Minimum valid X value |
| `maxX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)   | Maximum valid X value |
| `minY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)   | Minimum valid Y value |
| `maxY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)   | Maximum valid Y value |

|                                       Returns                                       |
|-------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | true if a springback was initiated, false if startX and startY were already within the valid range. |

### startScroll

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [startScroll](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#startScroll(int,int,int,int))(startX: Int, startY: Int, dx: Int, dy: Int): Unit
```
| **This function is deprecated.**   
|
| Use[getCurrX](https://developer.android.com/reference/android/widget/OverScroller.html#getCurrX())directly.

Start scrolling by providing a starting point and the distance to travel. The scroll will use the default value of 250 milliseconds for the duration.  

|                                      Parameters                                       |
|---------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------|
| `startX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | Starting horizontal scroll offset in pixels. Positive numbers will scroll the content to the left. |
| `startY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | Starting vertical scroll offset in pixels. Positive numbers will scroll the content up.            |
| `dx: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)     | Horizontal distance to travel. Positive numbers will scroll the content to the left.               |
| `dy: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)     | Vertical distance to travel. Positive numbers will scroll the content up.                          |

### startScroll

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [startScroll](https://developer.android.com/reference/kotlin/androidx/core/widget/ScrollerCompat#startScroll(int,int,int,int,int))(startX: Int, startY: Int, dx: Int, dy: Int, duration: Int): Unit
```
| **This function is deprecated.**   
|
| Use[startScroll](https://developer.android.com/reference/android/widget/OverScroller.html#startScroll(int, int, int, int, int))directly.

Start scrolling by providing a starting point and the distance to travel.  

|                                       Parameters                                        |
|-----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------|
| `startX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)   | Starting horizontal scroll offset in pixels. Positive numbers will scroll the content to the left. |
| `startY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)   | Starting vertical scroll offset in pixels. Positive numbers will scroll the content up.            |
| `dx: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)       | Horizontal distance to travel. Positive numbers will scroll the content to the left.               |
| `dy: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)       | Vertical distance to travel. Positive numbers will scroll the content up.                          |
| `duration: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | Duration of the scroll in milliseconds.                                                            |