예제 #1
0
        public SDWebImageOperation Download(string url, SDWebImageOptions options, SDWebImageDownloaderProgressBlock progress, SDWebImageCompletedWithFinishedBlock completed)
        {
            // TEMP - remove after Xamarin.iOS update (7.0.2 or whatever)
#if DEBUG
            completed(new UIImage(), null, 0, true);
            return(null);
#endif
            if (!Uri.IsWellFormedUriString(url, UriKind.Absolute))
            {
                throw new Exception(String.Format("Malformed url: {0}", url));
            }
            return(Download(NSUrl.FromString(url), options, progress, completed));
        }
예제 #2
0
 public SDWebImageOperation Download(string url, SDWebImageOptions options, SDWebImageDownloaderProgressBlock progress, SDWebImageCompletedWithFinishedBlock completed)
 {
     // TEMP - remove after Xamarin.iOS update (7.0.2 or whatever)
     #if DEBUG
     completed (new UIImage(), null, 0, true);
     return null;
     #endif
     if (!Uri.IsWellFormedUriString (url, UriKind.Absolute)) throw new Exception (String.Format ("Malformed url: {0}", url));
     return Download (NSUrl.FromString (url), options, progress, completed);
 }