Sketchware

Sketchware

  • Docs
  • Community
  • Blog

›Components

The Basics

  • Getting Started
  • Creating a New Project
  • Designing Your App
  • Programming Your App
  • Adding Components
  • Adding Resources

Firebase

  • Getting Started
  • Linking Android App
  • Project Settings
  • Setting Database Rules
  • Enabling Login Methods
  • Enabling Firebase Storage

AdMob

  • Getting Started
  • Creating Ad Unit
  • Sketchware AdMob Settings

Publishing

  • Getting Started
  • Creating a Service Account
  • First Time Publishing

Components

  • Intent
  • SharedPreference
  • Calendar
  • Vibrator
  • Timer
  • Dialog
  • MediaPlayer
  • SoundPool
  • ObjectAnimator
  • Camera
  • FilePicker
  • Gyroscope
  • Firebase DB
  • Firebase Auth
  • Firebase Storage

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
← VibratorDialog →
  • Example
  • Blocks
    • after
    • after every
    • cancel
Sketchware
Docs
Getting Started
Community
FacebookSlack
More
BlogMedium
Copyright © 2018 Sketchware