Class DynamicHandler<P,​R>

    • Nested Class Summary

      • Nested classes/interfaces inherited from class android.os.Handler

        android.os.Handler.Callback
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int MESSAGE_NULL_IF_NOT
      Message constant to set the content to null if not matched the criteria.
      static int MESSAGE_POST_PROGRESS
      Message constant to publish the progress on the main thread.
      static int MESSAGE_POST_RESULT
      Message constant to post the final result on the main thread.
    • Constructor Summary

      Constructors 
      Constructor Description
      DynamicHandler​(android.os.Looper looper, DynamicRunnable<?,​P,​R> runnable)
      Constructor to initialize an object of this class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DynamicRunnable<?,​P,​R> getRunnable()
      Returns the runnable handled by this handler.
      void handleMessage​(android.os.Message msg)  
      • Methods inherited from class android.os.Handler

        createAsync, createAsync, dispatchMessage, dump, getLooper, getMessageName, hasCallbacks, hasMessages, hasMessages, obtainMessage, obtainMessage, obtainMessage, obtainMessage, obtainMessage, post, postAtFrontOfQueue, postAtTime, postAtTime, postDelayed, postDelayed, removeCallbacks, removeCallbacks, removeCallbacksAndMessages, removeMessages, removeMessages, sendEmptyMessage, sendEmptyMessageAtTime, sendEmptyMessageDelayed, sendMessage, sendMessageAtFrontOfQueue, sendMessageAtTime, sendMessageDelayed, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • MESSAGE_POST_RESULT

        public static final int MESSAGE_POST_RESULT
        Message constant to post the final result on the main thread.
        See Also:
        Constant Field Values
      • MESSAGE_POST_PROGRESS

        public static final int MESSAGE_POST_PROGRESS
        Message constant to publish the progress on the main thread.
        See Also:
        Constant Field Values
    • Method Detail

      • handleMessage

        public void handleMessage​(@NonNull
                                  android.os.Message msg)
        Overrides:
        handleMessage in class android.os.Handler
      • getRunnable

        @Nullable
        public DynamicRunnable<?,​P,​R> getRunnable()
        Returns the runnable handled by this handler.
        Returns:
        The runnable handled by this handler.