setContentViewTopPadding

open fun setContentViewTopPadding(pixels: Int)

Allows a Compose host to take over top-padding management of the sibling content view. Once called, the automatic adjustContentViewTopPadding calls triggered by contextual toolbar lifecycle events are suppressed so they do not race with Compose layout.

Parameters

pixels

desired top padding in pixels; 0 removes any existing padding