C# 클래스 MonoTouch.Dialog.Utilities.ImageLoader

Network image loader, with local file system cache and in-memory cache
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.
파일 보기 프로젝트 열기: SuperYeti/MonoTouch.Dialog 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
BaseDir string
DefaultLoader ImageLoader

공개 메소드들

메소드 설명
DefaultRequestImage ( Uri uri, IImageUpdated notify ) : UIImage

Requests an image to be loaded using the default image loader

ImageLoader ( int cacheSize, int memoryLimit ) : System

Creates a new instance of the image loader

Purge ( ) : void

Purges the contents of the DefaultLoader

PurgeCache ( ) : void

Purges the cache of this instance of the ImageLoader, releasing all the memory used by the images in the caches.

RequestImage ( Uri uri, IImageUpdated notify ) : UIImage

Requests an image to be loaded from the network

md5 ( string input ) : string

비공개 메소드들

메소드 설명
Download ( Uri uri, string target ) : bool
ImageLoader ( ) : System
NotifyImageListeners ( ) : void
QueueRequest ( Uri uri, string target, IImageUpdated notify ) : void
StartPicDownload ( Uri uri, string target ) : void
_StartPicDownload ( Uri uri, string target ) : void
hex ( int v ) : int
sizer ( UIImage img ) : int

메소드 상세

DefaultRequestImage() 공개 정적인 메소드

Requests an image to be loaded using the default image loader
public static DefaultRequestImage ( Uri uri, IImageUpdated notify ) : UIImage
uri System.Uri /// The URI for the image to load ///
notify IImageUpdated /// A class implementing the IImageUpdated interface that will be invoked when the image has been loaded ///
리턴 UIImage

ImageLoader() 공개 메소드

Creates a new instance of the image loader
public ImageLoader ( int cacheSize, int memoryLimit ) : System
cacheSize int /// The maximum number of entries in the LRU cache ///
memoryLimit int /// The maximum number of bytes to consume by the image loader cache. ///
리턴 System

Purge() 공개 정적인 메소드

Purges the contents of the DefaultLoader
public static Purge ( ) : void
리턴 void

PurgeCache() 공개 메소드

Purges the cache of this instance of the ImageLoader, releasing all the memory used by the images in the caches.
public PurgeCache ( ) : void
리턴 void

RequestImage() 공개 메소드

Requests an image to be loaded from the network
public RequestImage ( Uri uri, IImageUpdated notify ) : UIImage
uri System.Uri /// The URI for the image to load ///
notify IImageUpdated /// A class implementing the IImageUpdated interface that will be invoked when the image has been loaded ///
리턴 UIImage

md5() 공개 정적인 메소드

public static md5 ( string input ) : string
input string
리턴 string

프로퍼티 상세

BaseDir 공개적으로 정적으로 프로퍼티

public static string BaseDir
리턴 string

DefaultLoader 공개적으로 정적으로 프로퍼티

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 static ImageLoader,MonoTouch.Dialog.Utilities DefaultLoader
리턴 ImageLoader