onPan

abstract fun onPan(listener: (event: PanEvent) -> Unit)

Add a listener on a PanEvent.

Parameters

listener

A lambda that takes a PanEvent and will be called each time a PanEvent occurs.