onTap

fun View.onTap(action: () -> Any?)

Convenience method that substitutes the traditional setOnClickListener applied on Views while applying a default throttler to be used between consecutive calls

Parameters

action

the action to be executed should the interval be consumed


fun View.onTap(throttler: Throttler, action: () -> Any?)

Convenience method that substitutes the traditional setOnClickListener applied on Views while applying a given throttler to be used between consecutive calls

Parameters

throttler

the throttler that will specify the interval to be applied between calls

action

the action to be executed should the interval be consumed