ThrottledOnClickListener

class ThrottledOnClickListener(listener: (view: View?) -> Unit, throttleInMillis: Long) : View.OnClickListener

An implementation of OnClickListener that prevent multiple rapid clicks.

Constructors

Link copied to clipboard
fun ThrottledOnClickListener(listener: (view: View?) -> Unit, throttleInMillis: Long)

Functions

Link copied to clipboard
open override fun onClick(v: View?)