IntrinsicMeasureScope

What a layout function can do whether it is answering an intrinsic question or measuring: read its environment. Receiver for a LayoutFunction's intrinsic overrides, which answer a number: they may not measure, declare a size or place. MeasureScope adds measuring and declaring.

Nothing in Litho asks a layout function's intrinsic overrides yet: Yoga measures a Layout by running LayoutFunction.measure.

Sealed: only Litho provides one.

Inheritors

Properties

Link copied to clipboard

The direction the container is laid out in.

Functions

Link copied to clipboard
fun Dimen.toPixels(): Int

This dimension in pixels, as the container's resources resolve it: 16.dp.toPixels().