ViewPreloadSizeProvider

open fun ViewPreloadSizeProvider()

Constructor that does nothing by default and requires users to call setView when a View is available to registerComponents the dimensions returned by this class.


open fun ViewPreloadSizeProvider(view: View)

Constructor that will extract the preload size from a given android.view.View.

Parameters

view

A not null View the size will be extracted from async using an .OnPreDrawListener