Class ImageViewHandler


  • public class ImageViewHandler
    extends android.os.Handler
    A Handler to set the ImageView on separate thread.
    See Also:
    ImageView.setImageDrawable(Drawable), ImageView.setImageBitmap(Bitmap)
    • Nested Class Summary

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

        android.os.Handler.Callback
    • Constructor Summary

      Constructors 
      Constructor Description
      ImageViewHandler​(android.widget.ImageView imageView)
      Constructor to initialize an object of this class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      android.widget.ImageView getImageView()
      Returns the image view used 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
    • Constructor Detail

      • ImageViewHandler

        public ImageViewHandler​(@Nullable
                                android.widget.ImageView imageView)
        Constructor to initialize an object of this class.
        Parameters:
        imageView - The image view to be used.
    • Method Detail

      • handleMessage

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

        @Nullable
        public android.widget.ImageView getImageView()
        Returns the image view used by this handler.
        Returns:
        The image view used by this handler.