Files
Klottr/shared/src/commonMain/kotlin/app/klottr/images/VisualMediaPicker.kt
2025-09-24 18:40:17 +02:00

16 lines
396 B
Kotlin

package app.klottr.images
import androidx.compose.runtime.Composable
import app.klottr.net.ImageHandle
/**
* Simple, callback-based image picker.
* Actuals will present native UI and return an ImageHandle (e.g., UriString or Bytes).
*/
interface VisualMediaPicker {
fun pickImage(onResult: (ImageHandle?) -> Unit)
}
@Composable
expect fun rememberVisualMediaPicker(): VisualMediaPicker