java.lang.Object | |
↳ | com.urbanairship.iam.banner.Timer |
Timer that can be stopped and started.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Timer(long milliseconds)
Creates a new timer.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
long |
getRunTime()
Gets the total run time in milliseconds.
| ||||||||||
void |
start()
Starts the timer.
| ||||||||||
void |
stop()
Stops the timer.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
onFinish()
Called when the timer finishes.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a new timer.
milliseconds | The duration of the timer in milliseconds. |
---|
Gets the total run time in milliseconds.
Starts the timer.
Stops the timer.
Called when the timer finishes.