fling

open fun fling(startX: Int, startY: Int, velocityX: Int, velocityY: Int, minX: Int, maxX: Int, minY: Int, maxY: Int)(source)

Deprecated

Use fling directly.

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

Parameters

startX

Starting point of the scroll (X)

startY

Starting point of the scroll (Y)

velocityX

Initial velocity of the fling (X) measured in pixels per second.

velocityY

Initial velocity of the fling (Y) measured in pixels per second

minX

Minimum X value. The scroller will not scroll past this point.

maxX

Maximum X value. The scroller will not scroll past this point.

minY

Minimum Y value. The scroller will not scroll past this point.

maxY

Maximum Y value. The scroller will not scroll past this point.


open fun fling(startX: Int, startY: Int, velocityX: Int, velocityY: Int, minX: Int, maxX: Int, minY: Int, maxY: Int, overX: Int, overY: Int)(source)

Deprecated

Use fling directly.

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

Parameters

startX

Starting point of the scroll (X)

startY

Starting point of the scroll (Y)

velocityX

Initial velocity of the fling (X) measured in pixels per second.

velocityY

Initial velocity of the fling (Y) measured in pixels per second

minX

Minimum X value. The scroller will not scroll past this point.

maxX

Maximum X value. The scroller will not scroll past this point.

minY

Minimum Y value. The scroller will not scroll past this point.

maxY

Maximum Y value. The scroller will not scroll past this point.

overX

Overfling range. If >0, horizontal overfling in either direction will be possible.

overY

Overfling range. If >0, vertical overfling in either direction will be possible.