rememberWindowDpSize

@Composable
fun Activity.rememberWindowDpSize(): WindowDpSize

Copyright 2022 Google LLC. SPDX-License-Identifier: Apache-2.0

Remembers the WindowSize class for the window corresponding to the current window metrics.

Referenceshttps://github.com/android/compose-samples/blob/d38047520c00d5eed71eb731b1fa5ecd99f59a32/JetNews/app/src/main/java/com/example/jetnews/utils/WindowSize.kt)


@Composable
fun Fragment.rememberWindowDpSize(): WindowDpSize

Remembers the WindowSize class for the window corresponding to the current window metrics.

Referenceshttps://github.com/android/compose-samples/blob/d38047520c00d5eed71eb731b1fa5ecd99f59a32/JetNews/app/src/main/java/com/example/jetnews/utils/WindowSize.kt)