/// <summary> /// Requests an image to be loaded using the default image loader /// </summary> /// <param name="uri"> /// The URI for the image to load /// </param> /// <param name="notify"> /// A class implementing the IImageUpdated interface that will be invoked when the image has been loaded /// </param> /// <returns> /// If the image has already been downloaded, or is in the cache, this will return the image as a UIImage. /// </returns> public static UIImage DefaultRequestImage(Uri uri, IImageUpdated notify, IDictionary<string, string> headers = null) { if (DefaultLoader == null) { DefaultLoader = new ImageLoader(50, 4 * 1024 * 1024); } return DefaultLoader.RequestImage(uri, notify, headers); }
/// <summary> /// Requests an image to be loaded using the default image loader /// </summary> /// <param name="uri"> /// The URI for the image to load /// </param> /// <param name="notify"> /// A class implementing the IImageUpdated interface that will be invoked when the image has been loaded /// </param> /// <returns> /// If the image has already been downloaded, or is in the cache, this will return the image as a UIImage. /// </returns> public static UIImage DefaultRequestImage(Uri uri, IImageUpdated notify) { if (DefaultLoader == null) DefaultLoader = new ImageLoader(50, 4 * 1024 * 1024); return DefaultLoader.RequestImage(uri, notify); }