StickyTouchEvent

A stable interface that defines touch event behaviors for sticky items. The interface includes methods to handle touch events like initialization, start, move, and end.

Functions

Link copied to clipboard
abstract fun onTouchEnd()

Handles the end of the touch event. This method is called when the user lifts their finger or pointer from the canvas.

Link copied to clipboard
abstract fun onTouchInitialize()

Initializes the touch event

Link copied to clipboard
abstract fun onTouchMove(previousOffset: Offset = Offset.Zero, currentOffset: Offset = Offset.Zero)

Handles the movement of the touch event. This method is called when the user moves their finger or pointer on the canvas.

Link copied to clipboard
abstract fun onTouchStart(offset: Offset = Offset.Zero)

Handles the start of a touch event. This method is called when the user first touches the canvas.