congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ImageLoader.getCacheKey
Code IndexAdd Tabnine to your IDE (free)

How to use
getCacheKey
method
in
com.android.volley.toolbox.ImageLoader

Best Java code snippets using com.android.volley.toolbox.ImageLoader.getCacheKey (Showing top 20 results out of 315)

origin: chentao0707/SimplifyReader

/**
 * Checks if the item is available in the cache.
 *
 * @param requestUrl The url of the remote image
 * @param maxWidth   The maximum width of the returned image.
 * @param maxHeight  The maximum height of the returned image.
 * @param scaleType  The scaleType of the imageView.
 * @return True if the item exists in cache, false otherwise.
 */
public boolean isCached(String requestUrl, int maxWidth, int maxHeight, ScaleType scaleType) {
  throwIfNotOnMainThread();
  String cacheKey = getCacheKey(requestUrl, maxWidth, maxHeight, scaleType);
  return mCache.getBitmap(cacheKey) != null;
}
origin: mcxiaoke/android-volley

/**
 * Checks if the item is available in the cache.
 *
 * @param requestUrl The url of the remote image
 * @param maxWidth   The maximum width of the returned image.
 * @param maxHeight  The maximum height of the returned image.
 * @param scaleType  The scaleType of the imageView.
 * @return True if the item exists in cache, false otherwise.
 */
public boolean isCached(String requestUrl, int maxWidth, int maxHeight, ScaleType scaleType) {
  throwIfNotOnMainThread();
  String cacheKey = getCacheKey(requestUrl, maxWidth, maxHeight, scaleType);
  return mCache.getBitmap(cacheKey) != null;
}
origin: jiangqqlmj/FastDev4Android

/**
 * Checks if the item is available in the cache.
 *
 * @param requestUrl The url of the remote image
 * @param maxWidth   The maximum width of the returned image.
 * @param maxHeight  The maximum height of the returned image.
 * @param scaleType  The scaleType of the imageView.
 * @return True if the item exists in cache, false otherwise.
 */
public boolean isCached(String requestUrl, int maxWidth, int maxHeight, ScaleType scaleType) {
  throwIfNotOnMainThread();
  String cacheKey = getCacheKey(requestUrl, maxWidth, maxHeight, scaleType);
  return mCache.getBitmap(cacheKey) != null;
}
origin: mcxiaoke/android-volley

final String cacheKey = getCacheKey(requestUrl, maxWidth, maxHeight, scaleType);
origin: chentao0707/SimplifyReader

final String cacheKey = getCacheKey(requestUrl, maxWidth, maxHeight, scaleType);
origin: jiangqqlmj/FastDev4Android

final String cacheKey = getCacheKey(requestUrl, maxWidth, maxHeight, scaleType);
origin: xuningjack/AndroidNet

/**
 * Checks if the item is available in the cache.
 * @param requestUrl The url of the remote image
 * @param maxWidth The maximum width of the returned image.
 * @param maxHeight The maximum height of the returned image.
 * @return True if the item exists in cache, false otherwise.
 */
public boolean isCached(String requestUrl, int maxWidth, int maxHeight) {
  throwIfNotOnMainThread();
  String cacheKey = getCacheKey(requestUrl, maxWidth, maxHeight);
  return mCache.getBitmap(cacheKey) != null;
}
origin: AnandChowdhary/saga-android

/**
 * Checks if the item is available in the cache.
 * @param requestUrl The url of the remote image
 * @param maxWidth The maximum width of the returned image.
 * @param maxHeight The maximum height of the returned image.
 * @return True if the item exists in cache, false otherwise.
 */
public boolean isCached(String requestUrl, int maxWidth, int maxHeight) {
  throwIfNotOnMainThread();
  String cacheKey = getCacheKey(requestUrl, maxWidth, maxHeight);
  return mCache.getBitmap(cacheKey) != null;
}
origin: MewX/light-novel-library_Wenku8_Android

/**
 * Checks if the item is available in the cache.
 *
 * @param requestUrl The url of the remote image
 * @param maxWidth   The maximum width of the returned image.
 * @param maxHeight  The maximum height of the returned image.
 * @param scaleType  The scaleType of the imageView.
 * @return True if the item exists in cache, false otherwise.
 */
public boolean isCached(String requestUrl, int maxWidth, int maxHeight, ScaleType scaleType) {
  throwIfNotOnMainThread();
  String cacheKey = getCacheKey(requestUrl, maxWidth, maxHeight, scaleType);
  return mCache.getBitmap(cacheKey) != null;
}
origin: com.mcxiaoke.volley/library

/**
 * Checks if the item is available in the cache.
 *
 * @param requestUrl The url of the remote image
 * @param maxWidth   The maximum width of the returned image.
 * @param maxHeight  The maximum height of the returned image.
 * @param scaleType  The scaleType of the imageView.
 * @return True if the item exists in cache, false otherwise.
 */
public boolean isCached(String requestUrl, int maxWidth, int maxHeight, ScaleType scaleType) {
  throwIfNotOnMainThread();
  String cacheKey = getCacheKey(requestUrl, maxWidth, maxHeight, scaleType);
  return mCache.getBitmap(cacheKey) != null;
}
origin: panxw/android-volley-manager

/**
 * Checks if the item is available in the cache.
 *
 * @param requestUrl The url of the remote image
 * @param maxWidth   The maximum width of the returned image.
 * @param maxHeight  The maximum height of the returned image.
 * @param scaleType  The scaleType of the imageView.
 * @return True if the item exists in cache, false otherwise.
 */
public boolean isCached(String requestUrl, int maxWidth, int maxHeight, ScaleType scaleType) {
  throwIfNotOnMainThread();
  String cacheKey = getCacheKey(requestUrl, maxWidth, maxHeight, scaleType);
  return mCache.getBitmap(cacheKey) != null;
}
origin: jungletian/TitanjumNote

/**
 * Checks if the item is available in the cache.
 *
 * @param requestUrl The url of the remote image
 * @param maxWidth   The maximum width of the returned image.
 * @param maxHeight  The maximum height of the returned image.
 * @param scaleType  The scaleType of the imageView.
 * @return True if the item exists in cache, false otherwise.
 */
public boolean isCached(String requestUrl, int maxWidth, int maxHeight, ScaleType scaleType) {
  throwIfNotOnMainThread();
  String cacheKey = getCacheKey(requestUrl, maxWidth, maxHeight, scaleType);
  return mCache.getBitmap(cacheKey) != null;
}
origin: chuyangliu/tastysnake

/**
 * Checks if the item is available in the cache.
 *
 * @param requestUrl The url of the remote image
 * @param maxWidth   The maximum width of the returned image.
 * @param maxHeight  The maximum height of the returned image.
 * @param scaleType  The scaleType of the imageView.
 * @return True if the item exists in cache, false otherwise.
 */
public boolean isCached(String requestUrl, int maxWidth, int maxHeight, ScaleType scaleType) {
  throwIfNotOnMainThread();
  String cacheKey = getCacheKey(requestUrl, maxWidth, maxHeight, scaleType);
  return mCache.getBitmap(cacheKey) != null;
}
origin: tazimete/android-app-food-delivery-system

/**
 * Checks if the item is available in the cache.
 *
 * @param requestUrl The url of the remote image
 * @param maxWidth   The maximum width of the returned image.
 * @param maxHeight  The maximum height of the returned image.
 * @param scaleType  The scaleType of the imageView.
 * @return True if the item exists in cache, false otherwise.
 */
public boolean isCached(String requestUrl, int maxWidth, int maxHeight, ScaleType scaleType) {
  throwIfNotOnMainThread();
  String cacheKey = getCacheKey(requestUrl, maxWidth, maxHeight, scaleType);
  return mCache.getBitmap(cacheKey) != null;
}
origin: cat9/EasyVolley

/**
 * Checks if the item is available in the cache.
 *
 * @param requestUrl The url of the remote image
 * @param maxWidth   The maximum width of the returned image.
 * @param maxHeight  The maximum height of the returned image.
 * @param scaleType  The scaleType of the imageView.
 * @return True if the item exists in cache, false otherwise.
 */
public boolean isCached(String requestUrl, int maxWidth, int maxHeight, ScaleType scaleType) {
  throwIfNotOnMainThread();
  String cacheKey = getCacheKey(requestUrl, maxWidth, maxHeight, scaleType);
  return mCache.getBitmap(cacheKey) != null;
}
origin: tazimete/android-app-food-delivery-system

/**
 * Checks if the item is available in the cache.
 *
 * @param requestUrl The url of the remote image
 * @param maxWidth   The maximum width of the returned image.
 * @param maxHeight  The maximum height of the returned image.
 * @param scaleType  The scaleType of the imageView.
 * @return True if the item exists in cache, false otherwise.
 */
public boolean isCached(String requestUrl, int maxWidth, int maxHeight, ScaleType scaleType) {
  throwIfNotOnMainThread();
  String cacheKey = getCacheKey(requestUrl, maxWidth, maxHeight, scaleType);
  return mCache.getBitmap(cacheKey) != null;
}
origin: CaMnter/AndroidLife

/**
 * Checks if the item is available in the cache.
 *
 * @param requestUrl The url of the remote image
 * @param maxWidth The maximum width of the returned image.
 * @param maxHeight The maximum height of the returned image.
 * @param scaleType The scaleType of the imageView.
 * @return True if the item exists in cache, false otherwise.
 */
/*
 * 检查 图片数据 是否被缓存
 * 根据四个数据匹配图片:
 * 1. requestUrl:该图片的 url
 * 2. maxWidth:该图片的 最大宽度
 * 3. maxHeight:该图片的 最大高度
 * 4. scaleType:该图片的 ImageView.ScaleType( CENTER_CROP, FIT_XY ... )
 */
public boolean isCached(String requestUrl, int maxWidth, int maxHeight, ScaleType scaleType) {
  // 检查是否为 主 UI 线程
  throwIfNotOnMainThread();
  // 根据数据,获取 cacheKey
  String cacheKey = getCacheKey(requestUrl, maxWidth, maxHeight, scaleType);
  /*
   * 从 外部提供的 ImageCache 实现类中
   * 去查找该 url 对应的 Bitmap 缓存
   */
  return mCache.getBitmap(cacheKey) != null;
}
origin: MewX/light-novel-library_Wenku8_Android

final String cacheKey = getCacheKey(requestUrl, maxWidth, maxHeight, scaleType);
origin: panxw/android-volley-manager

final String cacheKey = getCacheKey(requestUrl, maxWidth, maxHeight, scaleType);
origin: AnandChowdhary/saga-android

final String cacheKey = getCacheKey(requestUrl, maxWidth, maxHeight);
com.android.volley.toolboxImageLoadergetCacheKey

Javadoc

Creates a cache key for use with the L1 cache.

Popular methods of ImageLoader

  • get
    Issues a bitmap request with the given URL if that image is not available in the cache, and returns
  • <init>
    Constructs a new ImageLoader.
  • isCached
    Checks if the item is available in the cache.
  • batchResponse
    Starts the runnable for batched delivery of responses if it is not already started.
  • onGetImageError
    Handler for when an image failed to load.
  • throwIfNotOnMainThread
  • getImageListener
    The default implementation of ImageListener which handles basic functionality of showing a default i
  • makeImageRequest
  • onGetImageSuccess
    Handler for when an image was successfully loaded.
  • setBatchedResponseDelay
    Sets the amount of time to wait after the first response arrives before delivering all responses. Ba

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (Timer)
  • onRequestPermissionsResult (Fragment)
  • findViewById (Activity)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JFileChooser (javax.swing)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now