Package | Description |
---|---|
com.nostra13.universalimageloader.core |
Modifier and Type | Method and Description |
---|---|
ImageLoaderConfiguration.Builder |
ImageLoaderConfiguration.Builder.defaultDisplayImageOptions(DisplayImageOptions defaultDisplayImageOptions)
Sets default display image options for image displaying.
|
ImageLoaderConfiguration.Builder |
ImageLoaderConfiguration.Builder.denyCacheImageMultipleSizesInMemory()
When you display an image in a small
ImageView and later you try to display
this image (from identical URI) in a larger ImageView so decoded image of
bigger size will be cached in memory as a previous decoded image of smaller size.So the default behavior is to allow to cache multiple sizes of one image in memory. |
ImageLoaderConfiguration.Builder |
ImageLoaderConfiguration.Builder.discCache(DiskCache diskCache)
|
ImageLoaderConfiguration.Builder |
ImageLoaderConfiguration.Builder.discCacheExtraOptions(int maxImageWidthForDiskCache,
int maxImageHeightForDiskCache,
BitmapProcessor processorForDiskCache)
Deprecated.
|
ImageLoaderConfiguration.Builder |
ImageLoaderConfiguration.Builder.discCacheFileCount(int maxFileCount)
Deprecated.
Use
diskCacheFileCount(int) instead |
ImageLoaderConfiguration.Builder |
ImageLoaderConfiguration.Builder.discCacheFileNameGenerator(FileNameGenerator fileNameGenerator)
|
ImageLoaderConfiguration.Builder |
ImageLoaderConfiguration.Builder.discCacheSize(int maxCacheSize)
Deprecated.
Use
diskCacheSize(int) instead |
ImageLoaderConfiguration.Builder |
ImageLoaderConfiguration.Builder.diskCache(DiskCache diskCache)
Sets disk cache for images.
Default value - UnlimitedDiskCache . |
ImageLoaderConfiguration.Builder |
ImageLoaderConfiguration.Builder.diskCacheExtraOptions(int maxImageWidthForDiskCache,
int maxImageHeightForDiskCache,
BitmapProcessor processorForDiskCache)
Sets options for resizing/compressing of downloaded images before saving to disk cache.
NOTE: Use this option only when you have appropriate needs. |
ImageLoaderConfiguration.Builder |
ImageLoaderConfiguration.Builder.diskCacheFileCount(int maxFileCount)
Sets maximum file count in disk cache directory.
By default: disk cache is unlimited. NOTE: If you use this method then LruDiskCache
will be used as disk cache. |
ImageLoaderConfiguration.Builder |
ImageLoaderConfiguration.Builder.diskCacheFileNameGenerator(FileNameGenerator fileNameGenerator)
Sets name generator for files cached in disk cache.
Default value - DefaultConfigurationFactory.createFileNameGenerator() |
ImageLoaderConfiguration.Builder |
ImageLoaderConfiguration.Builder.diskCacheSize(int maxCacheSize)
Sets maximum disk cache size for images (in bytes).
By default: disk cache is unlimited. NOTE: If you use this method then LruDiskCache
will be used as disk cache. |
ImageLoaderConfiguration.Builder |
ImageLoaderConfiguration.Builder.imageDecoder(ImageDecoder imageDecoder)
Sets utility which will be responsible for decoding of image stream.
Default value - DefaultConfigurationFactory.createImageDecoder() |
ImageLoaderConfiguration.Builder |
ImageLoaderConfiguration.Builder.imageDownloader(ImageDownloader imageDownloader)
Sets utility which will be responsible for downloading of image.
Default value - DefaultConfigurationFactory.createImageDownloader() |
ImageLoaderConfiguration.Builder |
ImageLoaderConfiguration.Builder.memoryCache(MemoryCache memoryCache)
Sets memory cache for
bitmaps .Default value - LruMemoryCache
with limited memory cache size (size = 1/8 of available app memory)NOTE: If you set custom memory cache then following configuration option will not be considered: memoryCacheSize(int)
|
ImageLoaderConfiguration.Builder |
ImageLoaderConfiguration.Builder.memoryCacheExtraOptions(int maxImageWidthForMemoryCache,
int maxImageHeightForMemoryCache)
Sets options for memory cache
|
ImageLoaderConfiguration.Builder |
ImageLoaderConfiguration.Builder.memoryCacheSize(int memoryCacheSize)
Sets maximum memory cache size for
bitmaps (in bytes).Default value - 1/8 of available app memory. NOTE: If you use this method then LruMemoryCache will be used as
memory cache. |
ImageLoaderConfiguration.Builder |
ImageLoaderConfiguration.Builder.memoryCacheSizePercentage(int availableMemoryPercent)
Sets maximum memory cache size (in percent of available app memory) for
bitmaps .Default value - 1/8 of available app memory. NOTE: If you use this method then LruMemoryCache will be used as
memory cache. |
ImageLoaderConfiguration.Builder |
ImageLoaderConfiguration.Builder.taskExecutor(Executor executor)
Sets custom executor for tasks of loading and displaying images.
NOTE: If you set custom executor then following configuration options will not be considered for this executor: threadPoolSize(int)
threadPriority(int)
tasksProcessingOrder(QueueProcessingType)
|
ImageLoaderConfiguration.Builder |
ImageLoaderConfiguration.Builder.taskExecutorForCachedImages(Executor executorForCachedImages)
Sets custom executor for tasks of displaying cached on disk images (these tasks
are executed quickly so UIL prefer to use separate executor for them).
If you set the same executor for general tasks and tasks about cached images (this method) then these tasks will be in the same thread pool. |
ImageLoaderConfiguration.Builder |
ImageLoaderConfiguration.Builder.tasksProcessingOrder(QueueProcessingType tasksProcessingType)
Sets type of queue processing for tasks for loading and displaying images.
Default value - QueueProcessingType.FIFO |
ImageLoaderConfiguration.Builder |
ImageLoaderConfiguration.Builder.threadPoolSize(int threadPoolSize)
Sets thread pool size for image display tasks.
Default value - this |
ImageLoaderConfiguration.Builder |
ImageLoaderConfiguration.Builder.threadPriority(int threadPriority)
Sets the priority for image loading threads.
|
ImageLoaderConfiguration.Builder |
ImageLoaderConfiguration.Builder.writeDebugLogs()
Enables detail logging of
ImageLoader work. |
Copyright © 2011-2015. All Rights Reserved.