All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bumptech.glide.request.target.SizeReadyCallback Maven / Gradle / Ivy

Go to download

A fast and efficient image loading library for Android focused on smooth scrolling.

There is a newer version: 5.0.0-rc01
Show newest version
package com.bumptech.glide.request.target;

/**
 * A callback that must be called when the target has determined its size. For fixed size targets it
 * can be called synchronously.
 */
public interface SizeReadyCallback {
  /**
   * A callback called on the main thread.
   *
   * @param width  The width in pixels of the target, or {@link Target#SIZE_ORIGINAL} to indicate
   *               that we want the resource at its original width.
   * @param height The height in pixels of the target, or {@link Target#SIZE_ORIGINAL} to indicate
   *               that we want the resource at its original height.
   */
  void onSizeReady(int width, int height);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy