The Developer Preview for Android 11 is now available; test it out and share your feedback.

IntrinsicMeasurable

interface IntrinsicMeasurable
androidx.ui.core.IntrinsicMeasurable

A part of the composition that can be measured. This represents a layout. The instance should never be stored.

Summary

Public methods

abstract IntPx

Calculates the smallest height beyond which increasing the height never decreases the width.

abstract IntPx

Calculates the smallest width beyond which increasing the width never decreases the height.

abstract IntPx

Calculates the minimum height that the layout can be such that the content of the layout will be painted correctly.

abstract IntPx

Calculates the minimum width that the layout can be such that the content of the layout will be painted correctly.

Inherited extension functions

From androidx.compose
operator T

IMPORTANT: This global operator is TEMPORARY, and should be removed whenever an answer for contextual composers is reached.

Properties

abstract Any?

Data provided by the ParentData

Public methods

maxIntrinsicHeight

abstract fun maxIntrinsicHeight(width: IntPx): IntPx

Calculates the smallest height beyond which increasing the height never decreases the width.

maxIntrinsicWidth

abstract fun maxIntrinsicWidth(height: IntPx): IntPx

Calculates the smallest width beyond which increasing the width never decreases the height.

minIntrinsicHeight

abstract fun minIntrinsicHeight(width: IntPx): IntPx

Calculates the minimum height that the layout can be such that the content of the layout will be painted correctly.

minIntrinsicWidth

abstract fun minIntrinsicWidth(height: IntPx): IntPx

Calculates the minimum width that the layout can be such that the content of the layout will be painted correctly.

Properties

parentData

abstract val parentData: Any?

Data provided by the ParentData