RedApparat / Fotoapparat

Making Camera for Android more friendly. 📸
Apache License 2.0
3.82k stars 405 forks source link

Where do the functions biggestSize() or back() or firstAvailable() come from? #151

Closed siralam closed 6 years ago

siralam commented 6 years ago

I am so surprised I found no issues asking this question... Everyone seems to be calling biggestSize() happily... Am I missing anything?!

I have gone through the README again and again and I think have completely no idea why in the example you can just use biggestSize() and back(), etc, when configuring Fotoapparat...

siralam commented 6 years ago

I found it, those are all static functions...

In fact, Android Studio cannot auto complete static functions without Stating its class first. So unless I type the full name of that function and let Android Studio asks me if I want to import that static function or not, I (as I user) will not know there is such a function.

dmitry-zaitsev commented 6 years ago

We find that that kind of syntax is greatly improving readability of the configuration (assuming that you know where functions are coming from) at the cost of discoverability.

But thanks for the feedback, I will work on a Wiki for our library to make things more clear.