Package io.rong.common
Class CountDownTimer
-
- All Implemented Interfaces:
public abstract class CountDownTimerCreated by Android Studio. User: lvhongzhen Date: 2019-09-03 Time: 10:59
-
-
Field Summary
Fields Modifier and Type Field Description public booleanisStart
-
Method Summary
Modifier and Type Method Description booleanisStart()final synchronized voidcancel()Cancel the countdown. final synchronized CountDownTimerstart()Start the countdown. abstract voidonTick(long millisUntilFinished)Callback fired on regular interval. abstract voidonFinish()Callback fired when the time is up. -
-
Method Detail
-
isStart
boolean isStart()
-
cancel
final synchronized void cancel()
Cancel the countdown.
-
start
final synchronized CountDownTimer start()
Start the countdown.
-
onTick
abstract void onTick(long millisUntilFinished)
Callback fired on regular interval.
- Parameters:
millisUntilFinished- The amount of time until finished.
-
onFinish
abstract void onFinish()
Callback fired when the time is up.
-
-
-
-