C# Class BaconographyPortable.Services.Impl.SmartOfflineImageService

Inheritance: IImagesService
Datei anzeigen Open project: Synergex/Baconography

Private Properties

Property Type Description
_oomService_OutOfMemory void
_smartOfflineService_OffliningOpportunity void

Public Methods

Method Description
GenerateResizedImage ( object inputFile, uint width, uint height, uint edgePadding = 5, uint bottomPadding = 20, bool replaceIfExists = true ) : Task
GetImagesFromUrl ( string title, string url ) : string>>>.Task
ImageBytesFromUrl ( string url ) : Task
Initialize ( IImagesService imagesService, IOfflineService offlineService, IOOMService oomService, ISettingsService settingsService, ISuspensionService suspensionService, ISmartOfflineService smartOfflineService, ISimpleHttpService simpleHttpService ) : void
IsImage ( string url ) : bool
IsImageAPI ( string url ) : bool
MightHaveImagesFromUrl ( string url ) : bool
SaveFileFromUriAsync ( Uri fileUri, string localFileName, string localPath = "Images", bool replaceIfExists = true ) : Task

Private Methods

Method Description
_oomService_OutOfMemory ( OutOfMemoryEventArgs obj ) : void
_smartOfflineService_OffliningOpportunity ( OffliningOpportunityPriority priority, NetworkConnectivityStatus networkStatus, System token ) : void

Method Details

GenerateResizedImage() public method

public GenerateResizedImage ( object inputFile, uint width, uint height, uint edgePadding = 5, uint bottomPadding = 20, bool replaceIfExists = true ) : Task
inputFile object
width uint
height uint
edgePadding uint
bottomPadding uint
replaceIfExists bool
return Task

GetImagesFromUrl() public method

public GetImagesFromUrl ( string title, string url ) : string>>>.Task
title string
url string
return string>>>.Task

ImageBytesFromUrl() public method

public ImageBytesFromUrl ( string url ) : Task
url string
return Task

Initialize() public method

public Initialize ( IImagesService imagesService, IOfflineService offlineService, IOOMService oomService, ISettingsService settingsService, ISuspensionService suspensionService, ISmartOfflineService smartOfflineService, ISimpleHttpService simpleHttpService ) : void
imagesService IImagesService
offlineService IOfflineService
oomService IOOMService
settingsService ISettingsService
suspensionService ISuspensionService
smartOfflineService ISmartOfflineService
simpleHttpService ISimpleHttpService
return void

IsImage() public method

public IsImage ( string url ) : bool
url string
return bool

IsImageAPI() public method

public IsImageAPI ( string url ) : bool
url string
return bool

MightHaveImagesFromUrl() public method

public MightHaveImagesFromUrl ( string url ) : bool
url string
return bool

SaveFileFromUriAsync() public method

public SaveFileFromUriAsync ( Uri fileUri, string localFileName, string localPath = "Images", bool replaceIfExists = true ) : Task
fileUri System.Uri
localFileName string
localPath string
replaceIfExists bool
return Task