aboutsummaryrefslogtreecommitdiff
path: root/library/src/main/java/com/bumptech/glide/request/target/SizeReadyCallback.java
blob: 22b41180db6f7243aeb70836435b447d1d145fe5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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.
     * @param height The height in pixels of the target.
     */
    void onSizeReady(int width, int height);
}