measure

fun measure(c: ComponentContext, widthSpec: Int, heightSpec: Int, outputSize: Size)

Measure a component with the given SizeSpec constrain.

Parameters

widthSpec

Width SizeSpec constrain.

heightSpec

Height SizeSpec constrain.

outputSize

Size object that will be set with the measured dimensions.


fun measure(c: ComponentContext, widthSpec: Int, heightSpec: Int, outputSize: Size, shouldCacheResult: Boolean)