-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceRepeater.RepeatListener
-
Method Summary
Modifier and Type Method Description intgetRepeaterDelay()Retrieves the amount of time between method invocation. voidsetRepeaterDelay(int milliSeconds)Sets the amount of time between method invocation. voidstart()Starts the repeater voidstop()Stops the repeater booleanisRunning()Determines if the Repeater is currently running voidsetRepeatListener(Repeater.RepeatListener listener)Sets the listener to be notified for each repeat -
-
Constructor Detail
-
Repeater
Repeater()
-
Repeater
Repeater(boolean processOnStartingThread)
- Parameters:
processOnStartingThread- True if the repeating process should be handled on the same thread that created the Repeater
-
Repeater
Repeater(Handler handler)
- Parameters:
handler- The Handler to use for the repeating process
-
-
Method Detail
-
getRepeaterDelay
int getRepeaterDelay()
Retrieves the amount of time between method invocation.
-
setRepeaterDelay
void setRepeaterDelay(int milliSeconds)
Sets the amount of time between method invocation.
- Parameters:
milliSeconds- The time between method calls [default: ]
-
start
void start()
Starts the repeater
-
stop
void stop()
Stops the repeater
-
isRunning
boolean isRunning()
Determines if the Repeater is currently running
-
setRepeatListener
void setRepeatListener(Repeater.RepeatListener listener)
Sets the listener to be notified for each repeat
- Parameters:
listener- The listener or null
-
-
-
-