nguyenhoanglam / ImagePicker

A customizable library for selecting images on the device.
Apache License 2.0
599 stars 156 forks source link

Is there any way to handle the callback from toolbar back icon #156

Closed Anirban2022 closed 6 months ago

Anirban2022 commented 1 year ago

I want to handle the back icon and system back callback, is it currently supported?

nguyenhoanglam commented 1 year ago

You mean you want to handle back press (e.g to show confirm dialog) instead of exitting the picker by default?

Anirban2022 commented 1 year ago

Yes correct.

nguyenhoanglam commented 1 year ago

Got it! Maybe it should be in the next release.

nguyenhoanglam commented 11 months ago

@Anirban2022 when implementing back handler callback feature, I find that I want to dispay a confirm dialog using app context (not library context), the dialog will not be shown because the library view is on top of app view. so could you give me an idea for this case?