16 lines
396 B
Kotlin
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
|