Package-level declarations

Types

Link copied to clipboard

Allows for retrieving/observing the current application state This is primarily for determining if the application is in the foreground or the background

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface KmpWindowInfo
Link copied to clipboard
data class KmpWindowInsets(top: Dp = 0.dp, right: Dp = 0.dp, bottom: Dp = 0.dp, left: Dp = 0.dp) : WindowInsets
Link copied to clipboard
data class KmpWindowInsetsHolder(top: Dp = 0.dp, right: Dp = 0.dp, bottom: Dp = 0.dp, left: Dp = 0.dp)

Defines the total safe area bounds from which different window insets are derived

Link copied to clipboard

SystemBarIconColor defines to change system icons to dark or light. Using Unspecified will not change the current setting.

Properties

Link copied to clipboard

LocalKmpWindowInsets Allows an application to override default WindowInsets. This is particularly useful for Desktop as there are no predefined insets.

Functions

Link copied to clipboard
expect fun KmpScreenWakeLockEffect(isEnabled: Boolean = true)

Disables the Screen Idle Timeout preventing the screen from sleeping

Link copied to clipboard
actual fun SystemBarColorEffect(statusBarColor: Color, statusBarIconColor: SystemBarIconColor, navigationBarColor: Color, navigationBarIconColor: SystemBarIconColor)
expect fun SystemBarColorEffect(statusBarColor: Color = Color.Transparent, statusBarIconColor: SystemBarIconColor = SystemBarIconColor.Unspecified, navigationBarColor: Color = Color.Transparent, navigationBarIconColor: SystemBarIconColor = SystemBarIconColor.Unspecified)

SystemBarColorEffect Configures the system toolbars for Android and iOS. On desktop this effect is a no-op.

actual fun SystemBarColorEffect(statusBarColor: Color, statusBarIconColor: SystemBarIconColor, navigationBarColor: Color, navigationBarIconColor: SystemBarIconColor)
actual fun SystemBarColorEffect(statusBarColor: Color, statusBarIconColor: SystemBarIconColor, navigationBarColor: Color, navigationBarIconColor: SystemBarIconColor)
actual fun SystemBarColorEffect(statusBarColor: Color, statusBarIconColor: SystemBarIconColor, navigationBarColor: Color, navigationBarIconColor: SystemBarIconColor)