getImageDataCache() public static method

public static getImageDataCache ( ) : ImageDataCache
return ImageDataCache
Ejemplo n.º 1
0
 // starts the loading and creating of the image linked to the mediaItem
 public virtual void loadImage()
 {
     if (String.IsNullOrWhiteSpace(imageUrl) || imageLoaded)
     {
         return;
     }
     imageLoaded = true;
     Global.getImageDataCache().requestImageFromUrl(imageUrl, (_imageid) => imageReadySink(_imageid, true));
 }
Ejemplo n.º 2
0
 protected void randomImageReadySink(Image _image)
 {
     Global.getImageDataCache().addImage(this.objectId, _image);
     this.imageReadySink(this.objectId, false);
 }
Ejemplo n.º 3
0
 // use this method to load a standard image for the mediaItem
 public virtual void loadStandardImage()
 {
     Global.getImageDataCache().requestImageFromFile(@"resources/empty.png", (_imageId) => imageReadySink(_imageId, false));
 }