com.bumptech.glide.request.target.SizeReadyCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glide Show documentation
Show all versions of glide Show documentation
A fast and efficient image loading library for Android focused on smooth scrolling.
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);
}