zxing-android-embedded
zxing-android-embedded copied to clipboard
Switch to builder pattern for DefaultDecoderFactory
Description of the problem:
Bumped into this as I wanted to construct a default decoder with only decode hints set. Continuing to add more constructors is going to become tedious to maintain, instead maybe you could switch to builder pattern? I imagine its usage to be:
val myDecoderFactory = DefaultDecoderFactoryBuilder().withDecodeHints(myHintsMap).build()
where anything not set remains as null or a reasonable default.