com.nostra13.universalimageloader.core
Class DisplayImageOptions.Builder

java.lang.Object
  extended by com.nostra13.universalimageloader.core.DisplayImageOptions.Builder
Enclosing class:
DisplayImageOptions

public static class DisplayImageOptions.Builder
extends java.lang.Object

Builder for DisplayImageOptions

Author:
Sergey Tarasevich (nostra13[at]gmail[dot]com)

Constructor Summary
DisplayImageOptions.Builder()
           
 
Method Summary
 DisplayImageOptions.Builder bitmapConfig(android.graphics.Bitmap.Config bitmapConfig)
          Sets bitmap config for image decoding.
 DisplayImageOptions build()
          Builds configured DisplayImageOptions object
 DisplayImageOptions.Builder cacheInMemory()
          Loaded image will be cached in memory
 DisplayImageOptions.Builder cacheOnDisc()
          Loaded image will be cached on disc
 DisplayImageOptions.Builder cloneFrom(DisplayImageOptions options)
          Sets all options equal to incoming options
 DisplayImageOptions.Builder delayBeforeLoading(int delayInMillis)
          Sets delay time before starting loading task.
 DisplayImageOptions.Builder displayer(BitmapDisplayer displayer)
          Sets custom displayer for image loading task.
 DisplayImageOptions.Builder imageScaleType(ImageScaleType imageScaleType)
          Sets decoding type for image loading task.
 DisplayImageOptions.Builder resetViewBeforeLoading()
          ImageView will be reset (set null) before image loading start
 DisplayImageOptions.Builder showImageForEmptyUri(int imageRes)
          Image will be displayed in ImageView if empty URI (null or empty string) will be passed to ImageLoader.displayImage(...)
 DisplayImageOptions.Builder showStubImage(int stubImageRes)
          Stub image will be displayed in ImageView during image loading
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisplayImageOptions.Builder

public DisplayImageOptions.Builder()
Method Detail

showStubImage

public DisplayImageOptions.Builder showStubImage(int stubImageRes)
Stub image will be displayed in ImageView during image loading

Parameters:
stubImageRes - Stub image resource

showImageForEmptyUri

public DisplayImageOptions.Builder showImageForEmptyUri(int imageRes)
Image will be displayed in ImageView if empty URI (null or empty string) will be passed to ImageLoader.displayImage(...) method.

Parameters:
imageRes - Image resource

resetViewBeforeLoading

public DisplayImageOptions.Builder resetViewBeforeLoading()
ImageView will be reset (set null) before image loading start


cacheInMemory

public DisplayImageOptions.Builder cacheInMemory()
Loaded image will be cached in memory


cacheOnDisc

public DisplayImageOptions.Builder cacheOnDisc()
Loaded image will be cached on disc


imageScaleType

public DisplayImageOptions.Builder imageScaleType(ImageScaleType imageScaleType)
Sets decoding type for image loading task. Default value - ImageScaleType.POWER_OF_2


bitmapConfig

public DisplayImageOptions.Builder bitmapConfig(android.graphics.Bitmap.Config bitmapConfig)
Sets bitmap config for image decoding. Default value - Bitmap.Config#ARGB_8888


delayBeforeLoading

public DisplayImageOptions.Builder delayBeforeLoading(int delayInMillis)
Sets delay time before starting loading task. Default - no delay.


displayer

public DisplayImageOptions.Builder displayer(BitmapDisplayer displayer)
Sets custom displayer for image loading task. Default value - DefaultConfigurationFactory.createBitmapDisplayer()


cloneFrom

public DisplayImageOptions.Builder cloneFrom(DisplayImageOptions options)
Sets all options equal to incoming options


build

public DisplayImageOptions build()
Builds configured DisplayImageOptions object



Copyright © 2011-2013. All Rights Reserved.