🌄 Kotlin Multiplatform library for Compose Multiplatform, designed for seamless integration of an image picker feature in iOS and Android applications.
the PeekabooCamera is just a plain camera and it doesn't provide a way to capture an image
val state = rememberPeekabooCameraState(onCapture = { / Handle captured images / })
PeekabooCamera(
state = state,
modifier = Modifier
.fillMaxSize()
.border(
1.dp,
Color.Red
),
permissionDeniedContent = {
// Custom UI content for permission denied scenario
},
)
@YoussefHachicha, you need to use PeekabooCameraState. There is a capture() method in there. Please, have a look at the sample app. You can find how to trigger photo capturing there.
the PeekabooCamera is just a plain camera and it doesn't provide a way to capture an image val state = rememberPeekabooCameraState(onCapture = { / Handle captured images / }) PeekabooCamera( state = state, modifier = Modifier .fillMaxSize() .border( 1.dp, Color.Red ), permissionDeniedContent = { // Custom UI content for permission denied scenario }, )