mars

Timer

 

Timer

Timer component is used to execute a task after a certain amount of time, or repeat a certain task every set amount of time.

Example

These blocks will rotate the view textview1 by 90 degrees every 1 second.

example



Blocks

after

Execute the task after set amount of time.

after

TYPEEXPLANATIONREQUIRED
TimerTimer ComponentYes
NumberAmount of time (ms) to wait before executing the taskYes

after every

Execute the task after set amount of time, and repeat it every set amount of time.

after every

TYPEEXPLANATIONREQUIRED
TimerTimer ComponentYes
NumberAmount of time (ms) to wait before executing the taskYes
NumberAmount of time (ms) to wait before executing the task againYes

cancel

Cancel the timer task.

cancel

TYPEEXPLANATIONREQUIRED
TimerTimer ComponentYes

Post a Comment

0 Comments