onSizeReady

open fun onSizeReady(width: Int, height: Int)

A callback called on the main thread.

Parameters

width

The width in pixels of the target, or SIZE_ORIGINAL to indicate that we want the resource at its original width.

height

The height in pixels of the target, or SIZE_ORIGINAL to indicate that we want the resource at its original height.