Asynchronous image downloader / cache for Monotouch

After he worked with him for some time, I could not find a library to use inside my current Monotouch application.

I would like to know if there are some Monotouch libraries that can perform functions such as:

  • Asynchronous image downloader;
  • caching of asynchronous memory / disk image;
  • Cancel support for downloading images;

When developing using Objective-C, I’m used to using the well-known SDWebImage library.

If possible, I would like to use a library that is partially supported by Cross-Platform Xamarin to also use it in the version of my current Mono application for Android.

+4
source share
2 answers

We always use ImageLoader in MonoTouch.Dialog . It has caching and asynchronous loading. However, to cancel, you will have to deal with it yourself.

See here: https://github.com/migueldeicaza/MonoTouch.Dialog/blob/master/MonoTouch.Dialog/Utilities/ImageLoader.cs

Now this is a built-in link in Xamarin.iOS, you can find it in the Add Link dialog box.

+5
source

Also from Xamarin there are: https://github.com/xamarin/prebuilt-apps/blob/master/EmployeeDirectory/EmployeeDirectory/Utilities/ImageDownloader.cs .

Although this is far from complete, in my opinion, this is the best approach to solving crossplatfom.

0
source

Source: https://habr.com/ru/post/1468839/


All Articles