You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
},
)
The text was updated successfully, but these errors were encountered:
@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
},
)
The text was updated successfully, but these errors were encountered: