sparrowcode / PermissionsKit

Universal API for request permission and get its statuses.
https://x.com/sparrowcode_ios
MIT License
5.64k stars 462 forks source link

permissions parameter in didHide() #154

Closed devjmitchell closed 4 years ago

devjmitchell commented 4 years ago

Hi,

Can you please add permissions: [SPPermission] as a parameter to the didHide() method?

When there's only one permission we ask for on a VC, it's easy to know which permission request the user dismissed and react accordingly... however, when there's multiple permissions we may be asking for and the user dismisses the request, it'd be nice to know which permission(s) were ignored.

Thanks!

ivanvorobei commented 4 years ago

Good idea! I am add it today)

devjmitchell commented 4 years ago

Great, thanks!

ivanvorobei commented 4 years ago

I am add it in 5.2.4, please, update. I can't simple return array of permission, but I returned ids of permissions. Need init SPPermission with it id. You can see readme for more details.

And thanks for cool idea!

devjmitchell commented 4 years ago

Cool - I'll take a look!