onFling

abstract fun onFling(direction: FlingDirection, position: Int)

Defines the response to the detected fling gesture given the fling direction and the position of the flung tile in the puzzle grid.

Parameters

direction

Direction of the fling gesture.

position

Position of the flung tile in the puzzle grid (zero-based, following row major order).