permissions-dispatcher / PermissionsDispatcher

A declarative API to handle Android runtime permissions.
https://github.com/permissions-dispatcher/PermissionsDispatcher
Apache License 2.0
11.21k stars 1.44k forks source link

onNeverAskAgain: Fun? in PermissionsRequesterImpl class why not use private val #749

Closed LZ9 closed 2 years ago

LZ9 commented 2 years ago

Hello, I have a question when I read PermissionsRequesterImpl class. Why onNeverAskAgain: Fun? in constructor not use private val? I think onNeverAskAgain: Fun? and onPermissionDenied: Fun? are the same and should be modified with private val. And I want to know why different.

LZ9 commented 2 years ago

I use version is ktx 1.1.2

hotchemi commented 2 years ago

@LZ9 not sure I've understood your question 100% but just because it doesn't have to be val. does that make sense? 👀

Screenshot 2021-10-27 at 1 03 56