Platform independent image picking
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user