Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I cant capture an image #95

Open
YoussefHachicha opened this issue Jul 23, 2024 · 1 comment
Open

I cant capture an image #95

YoussefHachicha opened this issue Jul 23, 2024 · 1 comment

Comments

@YoussefHachicha
Copy link

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
},
)

@vshkl
Copy link
Contributor

vshkl commented Jul 29, 2024

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants