C# Class SoftwareKobo.UniversalToolkit.Storage.StorageCachedImage

Inheritance: Windows.UI.Xaml.Media.Imaging.BitmapSource
ファイルを表示 Open project: h82258652/SoftwareKobo.UniversalToolkit Class Usage Examples

Public Properties

Property Type Description
IsAutoRetryProperty Windows.UI.Xaml.DependencyProperty
IsLoadingProperty Windows.UI.Xaml.DependencyProperty
UriSourceProperty Windows.UI.Xaml.DependencyProperty

Public Methods

Method Description
CachedImageExist ( Uri uri ) : bool
CleanUpCachedImages ( ) : void

清空独立存储中已经缓存的图片。

GetCachedImagesSize ( ) : long

获取已缓存的文件的总大小。

RemoveCachedImage ( Uri uri ) : void
SetUriSource ( Uri uriSource ) : void
StorageCachedImage ( ) : System
StorageCachedImage ( Uri uri ) : System

Private Methods

Method Description
GetCachePath ( Uri uri ) : string
IsAutoRetryChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
IsCacheExist ( string cachedPath ) : bool
LoadCachedImageAsync ( string cachePath ) : Task
SaveImageAsync ( string cachePath, byte datas ) : System.Threading.Tasks.Task
SetStreamAsync ( IRandomAccessStream stream, System.DateTime requestTime ) : System.Threading.Tasks.Task
UriSourceChanged ( ) : void
UriSourceChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Method Details

CachedImageExist() public static method

public static CachedImageExist ( Uri uri ) : bool
uri System.Uri
return bool

CleanUpCachedImages() public static method

清空独立存储中已经缓存的图片。
public static CleanUpCachedImages ( ) : void
return void

GetCachedImagesSize() public static method

获取已缓存的文件的总大小。
public static GetCachedImagesSize ( ) : long
return long

RemoveCachedImage() public static method

public static RemoveCachedImage ( Uri uri ) : void
uri System.Uri
return void

SetUriSource() public method

public SetUriSource ( Uri uriSource ) : void
uriSource System.Uri
return void

StorageCachedImage() public method

public StorageCachedImage ( ) : System
return System

StorageCachedImage() public method

public StorageCachedImage ( Uri uri ) : System
uri System.Uri
return System

Property Details

IsAutoRetryProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml IsAutoRetryProperty
return Windows.UI.Xaml.DependencyProperty

IsLoadingProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml IsLoadingProperty
return Windows.UI.Xaml.DependencyProperty

UriSourceProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml UriSourceProperty
return Windows.UI.Xaml.DependencyProperty