iOS Guides | Samples

MonoTouch.Dialog.Utilities.ImageLoader Class

Network image loader, with local file system cache and in-memory cache

See Also: ImageLoader

Syntax

public class ImageLoader

Remarks

By default, using the static public methods will use an in-memory cache for 50 images and 4 megs total. The behavior of the static methods can be modified by setting the public DefaultLoader property to a value that the user configured. The instance methods can be used to create different imageloader with different properties. Keep in mind that the phone does not have a lot of memory, and using the cache with the unlimited value (0) even with a number of items in the cache can consume memory very quickly. Use the Purge method to release all the memory kept in the caches on low memory conditions, or when the application is sent to the background.

Requirements

Namespace: MonoTouch.Dialog.Utilities
Assembly: MonoTouch.Dialog-1 (in MonoTouch.Dialog-1.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.Dialog.Utilities.ImageLoader are listed below.

See Also: Object

Public Constructors

Creates a new instance of the image loader

Public Fields

static readonly
BaseDirString.
static
DefaultLoaderImageLoader. This contains the default loader which is configured to be 50 images up to 4 megs of memory. Assigning to this property a new value will change the behavior. This property is lazyly computed, the first time an image is requested.

Public Methods

static
DefaultRequestImage(Uri, IImageUpdated) : UIImage
static
Purge()
Purges the contents of the DefaultLoader
PurgeCache()
Purges the cache of this instance of the ImageLoader, releasing all the memory used by the images in the caches.
RequestImage(Uri, IImageUpdated) : UIImage