Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

xolan/android-debouncer

Repository files navigation

android-debouncer

GitHub license Master

Usage

...
Debouncer.debounce("something", new Runnable() {
    @Override
    public void run() {
        // Will not be ran due to the call below
        ...
    }
}, 250);

Thread.sleep(100, 0);

Debouncer.debounce("something", new Runnable() {
    @Override
    public void run() {
        // Overrides the previous call with identifier "something", running after approx. 350ms.
        // 100ms simulated "wait" time, 250ms debounce time.
        ...
    }
}, 250);
...

About

Simple debouncer for Android Runnables

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages