'How can I know if the camera is focused?

I want to do this: When the camera is focused, the app will take picture automatically. But I found there's no way to detect if the camera is focused.

How can I know if the camera is focused?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source