Interface SizeReadyCallback

All Known Implementing Classes:
SingleRequest, ViewPreloadSizeProvider

public interface SizeReadyCallback
A callback that must be called when the target has determined its size. For fixed size targets it can be called synchronously.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onSizeReady(int width, int height)
    A callback called on the main thread.
  • Method Details

    • onSizeReady

      void onSizeReady(int width, int height)
      A callback called on the main thread.
      Parameters:
      width - The width in pixels of the target, or Target.SIZE_ORIGINAL to indicate that we want the resource at its original width.
      height - The height in pixels of the target, or Target.SIZE_ORIGINAL to indicate that we want the resource at its original height.