set On Debounce Click Listener
fun View.setOnDebounceClickListener(lifecycle: Lifecycle, waitInterval: Long = Blocker.getInterval(), listener: View.OnClickListener?)
Register a callback to be invoked when this view is clicked. If this view is not clickable, it becomes clickable.
This callback only emit an item from an Observable if a particular timespan has passed without it emitting another item.
첫 요청 이후 interval 기준으로 요청이 들어오지 않으면 처리합니다.
Example of use:
(view).setOnDebounceClickListener {
// code
}Content copied to clipboard
Parameters
lifecycle
View Lifecycle
wait Interval
wait interval; default interval is 2000Ms
listener
OnClick Callback