permissions-dispatcher / PermissionsDispatcher

A declarative API to handle Android runtime permissions.

Home Page:https://github.com/permissions-dispatcher/PermissionsDispatcher

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

LZ9 opened this issue · comments

commented

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.

commented

I use version is ktx 1.1.2

@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