zetbaitsu / Compressor

An android image compression library.
7.04k stars 961 forks source link

Suggestion: Add some listener #169

Open seljad opened 3 years ago

seljad commented 3 years ago

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.

zetbaitsu commented 3 years ago

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.

nikospamp commented 3 years ago

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