Platform independent image picking

This commit is contained in:
Olof Hedman
2025-09-24 18:40:17 +02:00
parent e66c1861c2
commit 0acc81c9e2
6 changed files with 161 additions and 39 deletions

View File

@@ -0,0 +1,15 @@
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