Android-GoldenEye icon indicating copy to clipboard operation
Android-GoldenEye copied to clipboard

How to Override defaults for the Camera

Open raranov opened this issue 5 years ago • 1 comments

Hello,

I have implemented Goldeneye as a dependency in my project, and adapted MainActivity.kt from the example for my needs.

I'd like to change the defaults for resolution to QVGA, and I'd like to set Antibanding to "off" by default. Can you explain to me how to go about this?

Thank you.

raranov avatar Jan 23 '20 11:01 raranov

Hi,

antibanding is part of advanced/experimental API - https://github.com/infinum/Android-GoldenEye#advanced-features

Once you turn advanced API on, you can configure Antibanding the same way as any other property through config. It can be done when onReady() is triggered - https://github.com/infinum/Android-GoldenEye/blob/master/goldeneye/src/main/java/co/infinum/goldeneye/Callbacks.kt#L53

Hopefully this solves your issue.

domagojkorman avatar Jan 27 '20 06:01 domagojkorman