C# Класс FFImageLoading.Forms.CachedImage

CachedImage - Xamarin.Forms image replacement with caching and downsampling capabilities
Наследование: Xamarin.Forms.View
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
AspectProperty BindableProperty
BitmapOptimizationsProperty BindableProperty
CacheDurationProperty BindableProperty
CacheTypeProperty BindableProperty
DownloadStartedCommandProperty BindableProperty
DownsampleHeightProperty BindableProperty
DownsampleToViewSizeProperty BindableProperty
DownsampleUseDipUnitsProperty BindableProperty
DownsampleWidthProperty BindableProperty
ErrorCommandProperty BindableProperty
ErrorPlaceholderProperty BindableProperty
FadeAnimationEnabledProperty BindableProperty
FinishCommandProperty BindableProperty
IsLoadingProperty BindableProperty
IsLoadingPropertyKey BindablePropertyKey
IsOpaqueProperty BindableProperty
LoadingDelayProperty BindableProperty
LoadingPlaceholderProperty BindableProperty
LoadingPriorityProperty BindableProperty
RetryCountProperty BindableProperty
RetryDelayProperty BindableProperty
SourceProperty BindableProperty
SuccessCommandProperty BindableProperty
TransformPlaceholdersProperty BindableProperty
TransformationsProperty BindableProperty

Private Properties

Свойство Тип Описание
HandleTransformationsPropertyChangedDelegate void
OnDownloadStarted void
OnError void
OnFinish void
OnSizeRequest SizeRequest
OnSourcePropertyChanged void
OnSuccess void

Открытые методы

Метод Описание
CachedImage ( ) : System
Cancel ( ) : void

Cancels image loading tasks

GetImageAsJpgAsync ( int quality = 90, int desiredWidth, int desiredHeight ) : Task

Gets the image as JPG.

GetImageAsPngAsync ( int desiredWidth, int desiredHeight ) : Task

Gets the image as PNG

InvalidateCache ( Xamarin.Forms.ImageSource source, Cache cacheType, bool removeSimilar = false ) : System.Threading.Tasks.Task

Invalidates cache for a specified image source.

InvalidateCache ( string key, Cache cacheType, bool removeSimilar = false ) : System.Threading.Tasks.Task

Invalidates cache for a specified key.

ReloadImage ( ) : void

Reloads the image.

Защищенные методы

Метод Описание
OnBindingContextChanged ( ) : void

Приватные методы

Метод Описание
HandleTransformationsPropertyChangedDelegate ( BindableObject bindable, object oldValue, object newValue ) : void
OnDownloadStarted ( CachedImageEvents e ) : void
OnError ( CachedImageEvents e ) : void
OnFinish ( CachedImageEvents e ) : void
OnSizeRequest ( double widthConstraint, double heightConstraint ) : SizeRequest
OnSourcePropertyChanged ( BindableObject bindable, object oldValue, object newValue ) : void
OnSuccess ( CachedImageEvents e ) : void

Описание методов

CachedImage() публичный Метод

public CachedImage ( ) : System
Результат System

Cancel() публичный Метод

Cancels image loading tasks
public Cancel ( ) : void
Результат void

GetImageAsJpgAsync() публичный Метод

Gets the image as JPG.
public GetImageAsJpgAsync ( int quality = 90, int desiredWidth, int desiredHeight ) : Task
quality int
desiredWidth int
desiredHeight int
Результат Task

GetImageAsPngAsync() публичный Метод

Gets the image as PNG
public GetImageAsPngAsync ( int desiredWidth, int desiredHeight ) : Task
desiredWidth int
desiredHeight int
Результат Task

InvalidateCache() публичный статический Метод

Invalidates cache for a specified image source.
public static InvalidateCache ( Xamarin.Forms.ImageSource source, Cache cacheType, bool removeSimilar = false ) : System.Threading.Tasks.Task
source Xamarin.Forms.ImageSource Image source.
cacheType Cache Cache type.
removeSimilar bool If set to true removes all image cache variants /// (downsampling and transformations variants)
Результат System.Threading.Tasks.Task

InvalidateCache() публичный статический Метод

Invalidates cache for a specified key.
public static InvalidateCache ( string key, Cache cacheType, bool removeSimilar = false ) : System.Threading.Tasks.Task
key string
cacheType Cache Cache type.
removeSimilar bool If set to true removes all image cache variants /// (downsampling and transformations variants)
Результат System.Threading.Tasks.Task

OnBindingContextChanged() защищенный Метод

protected OnBindingContextChanged ( ) : void
Результат void

ReloadImage() публичный Метод

Reloads the image.
public ReloadImage ( ) : void
Результат void

Описание свойств

AspectProperty публичное статическое свойство

The aspect property.
public static BindableProperty AspectProperty
Результат BindableProperty

BitmapOptimizationsProperty публичное статическое свойство

The bitmap optimizations property.
public static BindableProperty BitmapOptimizationsProperty
Результат BindableProperty

CacheDurationProperty публичное статическое свойство

The cache duration property.
public static BindableProperty CacheDurationProperty
Результат BindableProperty

CacheTypeProperty публичное статическое свойство

The cache type property.
public static BindableProperty CacheTypeProperty
Результат BindableProperty

DownloadStartedCommandProperty публичное статическое свойство

The DownloadStartedCommandProperty.
public static BindableProperty DownloadStartedCommandProperty
Результат BindableProperty

DownsampleHeightProperty публичное статическое свойство

The downsample height property.
public static BindableProperty DownsampleHeightProperty
Результат BindableProperty

DownsampleToViewSizeProperty публичное статическое свойство

The downsample to view size property.
public static BindableProperty DownsampleToViewSizeProperty
Результат BindableProperty

DownsampleUseDipUnitsProperty публичное статическое свойство

The downsample use dip units property.
public static BindableProperty DownsampleUseDipUnitsProperty
Результат BindableProperty

DownsampleWidthProperty публичное статическое свойство

The downsample width property.
public static BindableProperty DownsampleWidthProperty
Результат BindableProperty

ErrorCommandProperty публичное статическое свойство

The ErrorCommandProperty.
public static BindableProperty ErrorCommandProperty
Результат BindableProperty

ErrorPlaceholderProperty публичное статическое свойство

The error placeholder property.
public static BindableProperty ErrorPlaceholderProperty
Результат BindableProperty

FadeAnimationEnabledProperty публичное статическое свойство

The fade animation enabled property.
public static BindableProperty FadeAnimationEnabledProperty
Результат BindableProperty

FinishCommandProperty публичное статическое свойство

The FinishCommandProperty.
public static BindableProperty FinishCommandProperty
Результат BindableProperty

IsLoadingProperty публичное статическое свойство

The is loading property.
public static BindableProperty IsLoadingProperty
Результат BindableProperty

IsLoadingPropertyKey публичное статическое свойство

The is loading property key.
public static BindablePropertyKey IsLoadingPropertyKey
Результат BindablePropertyKey

IsOpaqueProperty публичное статическое свойство

The is opaque property.
public static BindableProperty IsOpaqueProperty
Результат BindableProperty

LoadingDelayProperty публичное статическое свойство

The loading delay property.
public static BindableProperty LoadingDelayProperty
Результат BindableProperty

LoadingPlaceholderProperty публичное статическое свойство

The loading placeholder property.
public static BindableProperty LoadingPlaceholderProperty
Результат BindableProperty

LoadingPriorityProperty публичное статическое свойство

The loading priority property.
public static BindableProperty LoadingPriorityProperty
Результат BindableProperty

RetryCountProperty публичное статическое свойство

The retry count property.
public static BindableProperty RetryCountProperty
Результат BindableProperty

RetryDelayProperty публичное статическое свойство

The retry delay property.
public static BindableProperty RetryDelayProperty
Результат BindableProperty

SourceProperty публичное статическое свойство

The source property.
public static BindableProperty SourceProperty
Результат BindableProperty

SuccessCommandProperty публичное статическое свойство

The SuccessCommandProperty.
public static BindableProperty SuccessCommandProperty
Результат BindableProperty

TransformPlaceholdersProperty публичное статическое свойство

The TransformPlaceholders property.
public static BindableProperty TransformPlaceholdersProperty
Результат BindableProperty

TransformationsProperty публичное статическое свойство

The transformations property.
public static BindableProperty TransformationsProperty
Результат BindableProperty