toggle menu
Airship Android SDK
androidJvm
switch theme
search in API
urbanairship-layout
/
com.urbanairship.android.layout.util
/
Timer
Timer
abstract
class
Timer
Timer that can be stopped and started.
Members
Constructors
Timer
Link copied to clipboard
constructor
(
milliseconds
:
Long
)
Creates a new timer.
Properties
is
Started
Link copied to clipboard
open
val
isStarted
:
Boolean
Functions
get
Progress
Link copied to clipboard
open
fun
getProgress
(
)
:
Int
Gets the progress in percentage.
get
Run
Time
Link copied to clipboard
open
fun
getRunTime
(
)
:
Long
Gets the total run time in milliseconds.
start
Link copied to clipboard
open
fun
start
(
)
Starts the timer.
stop
Link copied to clipboard
open
fun
stop
(
)
Stops the timer.