Ejemplo n.º 1
0
 /**
  * Associates <b>memoryCacheKey</b> with <b>imageAware</b>. Then it helps to define image URI is
  * loaded into View at exact moment.
  */
 void prepareDisplayTaskFor(ImageAware imageAware, String memoryCacheKey) {
   cacheKeysForImageAwares.put(imageAware.getId(), memoryCacheKey);
 }
Ejemplo n.º 2
0
 /**
  * Cancels the task of loading and displaying image for incoming <b>imageAware</b>.
  *
  * @param imageAware {@link com.nostra13.universalimageloader.core.imageaware.ImageAware} for
  *     which display task will be cancelled
  */
 void cancelDisplayTaskFor(ImageAware imageAware) {
   cacheKeysForImageAwares.remove(imageAware.getId());
 }
Ejemplo n.º 3
0
 /**
  * Returns URI of image which is loading at this moment into passed {@link
  * com.nostra13.universalimageloader.core.imageaware.ImageAware}
  */
 String getLoadingUriForView(ImageAware imageAware) {
   return cacheKeysForImageAwares.get(imageAware.getId());
 }