Function

disableWindowInsetsRulers

Used to disable androidx.compose.ui.layout.WindowInsetsRulers.

disableWindowInsetsRulers

Source set: Android
@Deprecated(
    message = "Use WindowInsetsRulers.disable()",
    replaceWith =
        ReplaceWith(
            expression = "WindowInsetsRulers.disable()",
            imports = ["androidx.compose.ui.layout.WindowInsetsRulers"],
        ),
)
public fun ComposeView.Companion.disableWindowInsetsRulers()

Used to disable androidx.compose.ui.layout.WindowInsetsRulers. This can be used when UI never reads WindowInsets across all ComposeViews to reduce the overhead of requesting WindowInsets updates. Only call this when no ComposeViews will ever need to handle insets over the lifetime of the application. This should be called before the first ComposeView is created.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: