Debouncer

class Debouncer(delay: Long)

A class for time-based debouncing.

Parameters

delay

The delay time in milliseconds for debouncing.

Constructors

Link copied to clipboard
constructor(delay: Long)

Functions

Link copied to clipboard
fun debounce(action: () -> Unit)

Debounces the given action by delaying its execution for the specified delay time. If the action is called before the delay time has passed since the last call, the action is not executed.