We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
public TickTask setMaxLoopTime(int loopTime) Set max loop time.
public TickTask setIntervalWithFixedDelay(int time) "onTick" will be called again after "time" in million seconds.
public TickTask setIntervalWithFixedRate(int time) "onTick" is set to be called every "time" in million seconds.
protected abstract void onTick(int loopTime) to be implemented.
public void stop() Stop looping.
new TickTask(){ @Override public void onTick(int loopTime) { // do sth } }.setMaxLoopTime(199) .setIntervalWithFixedDelay(200) .postUI();