Anonymous

Not logged in

  • British English
  • Log in
GiderosMobile

Timer

From GiderosMobile

Namespaces

  • Page
  • Discussion

More

  • More

Page actions

  • Read
  • View source
  • History
Revision as of 13:18, 23 August 2018 by Hgy29 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Supported platforms: android, ios, mac, pc
Available since: Gideros 2011.6

Description


The Timer class is used to execute a code at specified intervals. The listener functions are registered
through Event.TIMER and Event.TIMER_COMPLETE events.

Methods

Timer.delayedCall Template:Delayed call a function after a set amount of time
Timer.new Template:Creates a new Timer object
Timer.pauseAll Template:Pause all timers
Timer.resumeAll Template:Resume all timers
Timer.stopAll Template:Stop all timers
Timer:getCurrentCount Template:Returns the current trigger count of the timer
Timer:getDelay Template:Returns the time interval between timer events in milliseconds
Timer:getRepeatCount Template:Returns the number of repetitions the timer will make
Timer:isRunning Template:Returns the current running status of timer
Timer:reset Template:Stops the timer and sets the currentCount property to 0
Timer:setDelay Template:Sets the time interval between timer events in milliseconds
Timer:setRepeatCount Template:Sets the number of repetitions the timer will make
Timer:start Template:Starts the timer
Timer:stop Template:Stops the timer

Events

Event.TIMER
Event.TIMER_COMPLETE

Constants

Retrieved from "https://wiki.gideros.rocks/index.php?title=Timer&oldid=5256"

Navigation

  • Main page
  • Recent changes
  • Random page
  • Help

Categories

    Lua API
    Main API
    Plugins

    Wiki tools

    Wiki tools

    • Special pages

    Page tools

    Page tools

      User page tools

        More

        • What links here
        • Related changes
        • Printable version
        • Permanent link
        • Page information
        • Page logs
        • Powered by MediaWiki
        • This page was last modified on 23 August 2018, at 13:18.
        • Privacy policy
        • About GiderosMobile
        • Disclaimers