Class Timer



  • public class Timer
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      static class  Timer.Factory 
    • Constructor Summary

      Constructors 
      Constructor and Description
      Timer(Handler handler, java.lang.Runnable runnable, int timeout) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void disable() 
      boolean start()
      Start the timer, if it is enabled and not completed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Timer

        public Timer(Handler handler,
                     java.lang.Runnable runnable,
                     int timeout)
    • Method Detail

      • start

        public boolean start()
        Start the timer, if it is enabled and not completed.
        Returns:
        true if the timer was started, and false if it wasn't (ie, if it wasn't enabled or was already completed).
      • disable

        public void disable()