xamarin - Getting the filename/path from MvvmCross Plugins.DownloadCache -
xamarin - Getting the filename/path from MvvmCross Plugins.DownloadCache -
i'm using mvvmcross downloadcache -- , it's working alright -- nice when need drop in image url , automagically downloads / caches image , serves uiimage.
i hoping leverage code 1 other utilize case -- i'd grab source images url's , cache files on local file system, want other utilize case image path on local file scheme instead of uiimage itself.
what help me if illustration of how might accomplish that. possible create happen in pcl, or need go platform specific code?
if @ source plugin, you'll find https://github.com/mvvmcross/mvvmcross/blob/3.2/plugins/cirrious/downloadcache/cirrious.mvvmcross.plugins.downloadcache/imvxfiledownloadcache.cs - give local file path cached file:
public interface imvxfiledownloadcache { void requestlocalfilepath(string httpsource, action<string> success, action<exception> error); }
you can hold of service implementing interface using mvx.resolve<imvxfiledownloadcache>()
to convert system-wide file path, seek nativepath
in https://github.com/mvvmcross/mvvmcross/blob/3.2/plugins/cirrious/file/cirrious.mvvmcross.plugins.file/imvxfilestore.cs#l27
xamarin mvvmcross
Comments
Post a Comment