All Downloads are FREE. Search and download functionalities are using the official Maven repository.

androidMain.ru.alexgladkov.odyssey.compose.helpers.WindowSize.kt Maven / Gradle / Ivy

There is a newer version: 1.4.0-alpha05
Show newest version
package ru.alexgladkov.odyssey.compose.helpers

import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.LocalConfiguration
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.unit.dp
import kotlin.math.roundToInt

@Composable
actual fun extractWindowHeight(): Int {
    val density = LocalDensity.current
    val configuration = LocalConfiguration.current
    return with(density) { configuration.screenHeightDp.dp.toPx().roundToInt() }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy