zxing-android-embedded icon indicating copy to clipboard operation
zxing-android-embedded copied to clipboard

Switch to builder pattern for DefaultDecoderFactory

Open Munzey opened this issue 3 years ago • 0 comments

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.

Munzey avatar Apr 13 '21 18:04 Munzey