commonMain.com.huanshankeji.compose.foundation.OnClick.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of compose-multiplatform-html-unified-common
Show all versions of compose-multiplatform-html-unified-common
Common wrappers of components (including layouts) and modifiers for Compose UI (Android, desktop (JVM), iOS, and web (Kotlin/Wasm)) and Compose HTML
The newest version!
package com.huanshankeji.compose.foundation
import com.huanshankeji.compose.ui.Modifier
/**
* Delegates to `clickable` on Android. `onClick` is not available on Android. See https://github.com/JetBrains/compose-multiplatform/issues/4468 for details.
*/
@Deprecated("Use `clickable` instead.", ReplaceWith("clickable(onClick)"))
@ExperimentalFoundationApi
expect fun Modifier.onClick(onClick: () -> Unit): Modifier
/**
* Has the interactive effect when clicked on the `composeUi` targets.
*/
@ExperimentalFoundationApi
expect fun Modifier.clickable(onClick: () -> Unit): Modifier
© 2015 - 2025 Weber Informatics LLC | Privacy Policy