congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ImageLoader$SyncImageLoadingListener.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.nostra13.universalimageloader.core.ImageLoader$SyncImageLoadingListener
constructor

Best Java code snippets using com.nostra13.universalimageloader.core.ImageLoader$SyncImageLoadingListener.<init> (Showing top 4 results out of 315)

origin: wanliyang1990/WliveTV

/**
 * Loads and decodes image synchronously.<br />
 * <b>NOTE:</b> {@link #init(ImageLoaderConfiguration)} method must be called before this method call
 *
 * @param uri             Image URI (i.e. "http://site.com/image.png", "file:///mnt/sdcard/image.png")
 * @param targetImageSize Minimal size for {@link Bitmap} which will be returned. Downloaded image will be decoded
 *                        and scaled to {@link Bitmap} of the size which is <b>equal or larger</b> (usually a bit
 *                        larger) than incoming targetImageSize.
 * @param options         {@linkplain com.nostra13.universalimageloader.core.DisplayImageOptions Options} for image
 *                        decoding and scaling. If <b>null</b> - default display image options
 *                        {@linkplain ImageLoaderConfiguration.Builder#defaultDisplayImageOptions(DisplayImageOptions)
 *                        from configuration} will be used.
 * @return Result image Bitmap. Can be <b>null</b> if image loading/decoding was failed or cancelled.
 * @throws IllegalStateException if {@link #init(ImageLoaderConfiguration)} method wasn't called before
 */
public Bitmap loadImageSync(String uri, ImageSize targetImageSize, DisplayImageOptions options) {
  if (options == null) {
    options = configuration.defaultDisplayImageOptions;
  }
  options = new DisplayImageOptions.Builder().cloneFrom(options).syncLoading(true).build();
  SyncImageLoadingListener listener = new SyncImageLoadingListener();
  loadImage(uri, targetImageSize, options, listener);
  return listener.getLoadedBitmap();
}
origin: com.nostra13.universalimageloader/universal-image-loader

/**
 * Loads and decodes image synchronously.<br />
 * <b>NOTE:</b> {@link #init(ImageLoaderConfiguration)} method must be called before this method call
 *
 * @param uri             Image URI (i.e. "http://site.com/image.png", "file:///mnt/sdcard/image.png")
 * @param targetImageSize Minimal size for {@link Bitmap} which will be returned. Downloaded image will be decoded
 *                        and scaled to {@link Bitmap} of the size which is <b>equal or larger</b> (usually a bit
 *                        larger) than incoming targetImageSize.
 * @param options         {@linkplain com.nostra13.universalimageloader.core.DisplayImageOptions Options} for image
 *                        decoding and scaling. If <b>null</b> - default display image options
 *                        {@linkplain ImageLoaderConfiguration.Builder#defaultDisplayImageOptions(DisplayImageOptions)
 *                        from configuration} will be used.
 * @return Result image Bitmap. Can be <b>null</b> if image loading/decoding was failed or cancelled.
 * @throws IllegalStateException if {@link #init(ImageLoaderConfiguration)} method wasn't called before
 */
public Bitmap loadImageSync(String uri, ImageSize targetImageSize, DisplayImageOptions options) {
  if (options == null) {
    options = configuration.defaultDisplayImageOptions;
  }
  options = new DisplayImageOptions.Builder().cloneFrom(options).syncLoading(true).build();
  SyncImageLoadingListener listener = new SyncImageLoadingListener();
  loadImage(uri, targetImageSize, options, listener);
  return listener.getLoadedBitmap();
}
origin: jiangqqlmj/Android-Universal-Image-Loader-Modify

/**
 *
 * @param uri                   资源URL地址
 * @param targetImageSize       显示目标图片尺寸大小
 * @param options               图片显示配置参数
 * @return
 */
public Bitmap loadImageSync(String uri, ImageSize targetImageSize, DisplayImageOptions options) {
  if (options == null) {
    options = configuration.defaultDisplayImageOptions;
  }
  options = new DisplayImageOptions.Builder().cloneFrom(options).syncLoading(true).build();
  SyncImageLoadingListener listener = new SyncImageLoadingListener();
  loadImage(uri, targetImageSize, options, listener);
  return listener.getLoadedBitmap();
}
origin: nostra13/Android-Universal-Image-Loader

/**
 * Loads and decodes image synchronously.<br />
 * <b>NOTE:</b> {@link #init(ImageLoaderConfiguration)} method must be called before this method call
 *
 * @param uri             Image URI (i.e. "http://site.com/image.png", "file:///mnt/sdcard/image.png")
 * @param targetImageSize Minimal size for {@link Bitmap} which will be returned. Downloaded image will be decoded
 *                        and scaled to {@link Bitmap} of the size which is <b>equal or larger</b> (usually a bit
 *                        larger) than incoming targetImageSize.
 * @param options         {@linkplain com.nostra13.universalimageloader.core.DisplayImageOptions Options} for image
 *                        decoding and scaling. If <b>null</b> - default display image options
 *                        {@linkplain ImageLoaderConfiguration.Builder#defaultDisplayImageOptions(DisplayImageOptions)
 *                        from configuration} will be used.
 * @return Result image Bitmap. Can be <b>null</b> if image loading/decoding was failed or cancelled.
 * @throws IllegalStateException if {@link #init(ImageLoaderConfiguration)} method wasn't called before
 */
public Bitmap loadImageSync(String uri, ImageSize targetImageSize, DisplayImageOptions options) {
  if (options == null) {
    options = configuration.defaultDisplayImageOptions;
  }
  options = new DisplayImageOptions.Builder().cloneFrom(options).syncLoading(true).build();
  SyncImageLoadingListener listener = new SyncImageLoadingListener();
  loadImage(uri, targetImageSize, options, listener);
  return listener.getLoadedBitmap();
}
com.nostra13.universalimageloader.coreImageLoader$SyncImageLoadingListener<init>

Popular methods of ImageLoader$SyncImageLoadingListener

  • getLoadedBitmap

Popular in Java

  • Making http post requests using okhttp
  • getSystemService (Context)
  • setContentView (Activity)
  • getExternalFilesDir (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Kernel (java.awt.image)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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