Xamarin.ImageLoader
1.0.1
See the version list below for details.
dotnet add package Xamarin.ImageLoader --version 1.0.1
NuGet\Install-Package Xamarin.ImageLoader -Version 1.0.1
<PackageReference Include="Xamarin.ImageLoader" Version="1.0.1" />
paket add Xamarin.ImageLoader --version 1.0.1
#r "nuget: Xamarin.ImageLoader, 1.0.1"
// Install Xamarin.ImageLoader as a Cake Addin #addin nuget:?package=Xamarin.ImageLoader&version=1.0.1 // Install Xamarin.ImageLoader as a Cake Tool #tool nuget:?package=Xamarin.ImageLoader&version=1.0.1
ImageLoader
A Reusable component to Download Image directly from URL. This also supportes Caching the downloaded images efficiently
Usage:
using Subsystems.Cache.External;
using Subsystems.ImageLoader.External;
....
....
private CMPCacheProxy _cacheProxy;
private CMPImageLoaderProxy _imageLoaderProxy;
....
....
var baseFolderPathString = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
_cacheProxy = new CMPCacheProxy(baseFolderPathString, 5 * 1024);
_cacheProxy.ExpiryDays(1);
Explicit Cache
Inject Cache explicitly <br>
_imageLoaderProxy = new CMPImageLoaderProxy("<Image_URL>", _cacheProxy);
await _imageLoaderProxy.LoadImageAsync();
Implicit Cache
This will create a default Cache with 7 days Expiry <br>
_imageLoaderProxy = new CMPImageLoaderProxy("<Image_URL>", <sieLimitInKB>);
await _imageLoaderProxy.LoadImageAsync();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
MonoAndroid | monoandroid81 is compatible. |
Xamarin.iOS | xamarinios10 is compatible. |
-
MonoAndroid 8.1
- Newtonsoft.Json (>= 11.0.2)
- Xamarin.CustomCache (>= 1.0.0)
- Xamarin.HttpConnection (>= 1.0.0)
-
Xamarin.iOS 1.0
- Newtonsoft.Json (>= 11.0.2)
- Xamarin.CustomCache (>= 1.0.2)
- Xamarin.HttpConnection (>= 1.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Xamarin.ImageLoader:
Package | Downloads |
---|---|
Xamarin.CustomImageView.iOS
A custom ImageView component for iOS with inteligent Caching, Handle Cache expiry, Automatic Download |
GitHub repositories
This package is not used by any popular GitHub repositories.
1. Initial release for ImageLoader component
2. Caching in-built. But a Custom Cache component can also be injected; this overrides default Caching
3. Not thread Safey; consumer has to implement this
4. 1:1 relationship between Loader and Image URL