ParallaxToolbarLayoutInfo

Measured geometry of a ComposeParallaxToolbarLayout, in pixels, updated on every layout pass. All values are 0 until the layout has been measured once; check isMeasured.

Every property is snapshot state, so reading one inside a graphicsLayer or placement block follows the scroll without recomposing.

Properties

Link copied to clipboard

Height of the pinned bottomContent slot, 0 when absent.

Link copied to clipboard

Scroll distance between fully expanded and fully collapsed.

Link copied to clipboard

Current bottom edge of the header, measured from the top of the layout.

Link copied to clipboard

Expanded header height, excluding topInsetPx.

Link copied to clipboard

How far the header has collapsed right now, in px.

Link copied to clipboard

Height of the layout.

Link copied to clipboard
Link copied to clipboard

Current stretch past the expanded height, in px.

Link copied to clipboard

How far the toolbar has slid off screen right now, in px.

Link copied to clipboard

Pinned toolbar height, excluding topInsetPx.

Link copied to clipboard

Status bar inset the toolbar and body are pushed down by.

Link copied to clipboard

Width of the layout.