Compressor icon indicating copy to clipboard operation
Compressor copied to clipboard

Suggestion: Add some listener

Open seljad opened this issue 4 years ago • 2 comments

Hi, I need to do something after the compressing finished. So I cant find OnComplateListener or etc in this library. Please add it in the next update.

seljad avatar Sep 19 '20 05:09 seljad

If you want to do something after the compressing finished, just do it below the line you do the compressing.

val compressedImageFile = Compressor.compress(context, actualImageFile) // compressing the image
myFunction() // do something after the compressing finished

No need listener or callback.

zetbaitsu avatar Sep 19 '20 08:09 zetbaitsu

Is there any progress listener @zetbaitsu in order to display for example 50% done.

nikospamp avatar Jan 14 '21 16:01 nikospamp