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

[feature/add-permission-denied-content] Add permissionDeniedContent parameter to PeekabooCamera composable #22

Merged
merged 4 commits into from
Dec 17, 2023

Conversation

onseok
Copy link
Owner

@onseok onseok commented Dec 17, 2023

Changes

  • Added permissionDeniedContent parameter to PeekabooCamera composable.
  • Implemented a usage example in the sample app, showcasing how to use permissionDeniedContent.
  • Updated the image UI size in the sample app for better layout presentation.

Implementation Details

The permissionDeniedContent is a composable lambda that gets invoked within the PeekabooCamera scope when camera permission is denied. This parameter allows developers to define custom UI elements like informative text, images, or a button to redirect users to settings. If not used, the PeekabooCamera composable will render a empty screen when permission is denied. Therefore, it's recommended to implement this feature for a comprehensive user experience.

@onseok onseok merged commit b98d45e into main Dec 17, 2023
1 check passed
@onseok onseok deleted the feature/add-permission-denied-content branch December 17, 2023 10:08
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

Successfully merging this pull request may close these issues.

1 participant