/** * 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); }
/** * 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()); }
/** * 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()); }