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

implement tap to focus #27

Merged
merged 2 commits into from
Aug 14, 2023
Merged

implement tap to focus #27

merged 2 commits into from
Aug 14, 2023

Conversation

Kimblebee
Copy link
Collaborator

@Kimblebee Kimblebee commented Jul 25, 2023

In the PreviewScreen, I created a value that keeps track of the View information from the CameraPreview composable. I just pass down a callback function from CameraPreview -> PreviewSurface -> CombinedSurface -> Texture to set that value.

When the screen is tapped, then the display, height, and width information of the view is provided to PreviewViewModel's tapToFocus(), which is then provides that info to cameraUseCase.tapToFocus to create a metering point and action to focus.

Copy link
Member

@yasith yasith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only a few nits

@Kimblebee Kimblebee merged commit 62187a1 into main Aug 14, 2023
3 checks passed
@Kimblebee Kimblebee deleted the kim/tap_to_focus branch August 14, 2023 16:26
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.

2 participants