public abstract class CountDownTimer
extends java.lang.Object
| 构造器和说明 |
|---|
CountDownTimer(long millisInFuture,
long countDownInterval) |
public CountDownTimer(long millisInFuture,
long countDownInterval)
millisInFuture - The number of millis in the future from the call
to start() until the countdown is done and onFinish()
is called.countDownInterval - The interval along the way to receive
onTick(long) callbacks.public final void cancel()
public final CountDownTimer start()
public abstract void onTick(long millisUntilFinished)
millisUntilFinished - The amount of time until finished.public abstract void onFinish()
public boolean isStart()