Xamarin.ImageLoader 1.0.1

A Reusable component to Download Image directly from URL. This also supportes Caching the downloaded images efficiently

There is a newer version of this package available.
See the version list below for details.
Install-Package Xamarin.ImageLoader -Version 1.0.1
dotnet add package Xamarin.ImageLoader --version 1.0.1
<PackageReference Include="Xamarin.ImageLoader" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xamarin.ImageLoader --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Xamarin.ImageLoader, 1.0.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// 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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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();

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();

Release Notes

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

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.

Version History

Version Downloads Last updated
1.0.3 491 11/10/2018
1.0.2 493 10/22/2018
1.0.1 495 8/2/2018
1.0.0 487 8/1/2018