Sketchware Docs (Unofficial)
  • Introduction (Under Construction)
  • Official Docs
  • Introduction to Sketchware
    • Adding your app
    • Designing and Programming your app
  • Widgets and Layouts
    • Concept
    • Properties
    • List of Widgets and Layouts
  • Events
  • Blocks
    • Variable
    • List
    • Control
    • Operator
    • Math
    • File
    • View
    • Component
    • More Block
  • Components
    • About Components
    • Intent
    • SharedPreference
    • Calendar
    • Vibrator
    • Timer
    • Dialog
  • Configuration
  • AdMob Guide
  • Community
Powered by GitBook
On this page
  • Basic Example
  • Blocks

Was this helpful?

  1. Components

Timer

The timer component is used to delay after the specified amount of time in milliseconds.

PreviousVibratorNextDialog

Last updated 4 years ago

Was this helpful?

Basic Example

After 100 milliseconds, run the code inside the block (in this case, there is nothing inside) using the specified timer component (in this case, called TimerName).

Blocks

After specified milliseconds:

After the sepcifed time in ms, run the blocks inside this block.

After specified time in milliseconds, for every specified milliseconds after:

Cancel

The timer component may not cancel if used multiple times.

Runs the blocks inside after 100 ms.
After the sepcified time in ms, for every specified time in ms that passes, run the blocks inside this block.
Cancel the sepcified timer.