Object Task

  • All Implemented Interfaces:

    
    public class Task
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static Task INSTANCE
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Unit runOnUiThread(Runnable runnable) Util to post to the UI thread.
      final static Unit postDelayed(Runnable runnable, Long delayMillis)
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • runOnUiThread

         final static Unit runOnUiThread(Runnable runnable)

        Util to post to the UI thread. This should prevent the overhead of creating multiple handlers.

        Parameters:
        runnable - Runnable that needs to be run on UI thread.