override fun onRequestPermissionsResult(requestCode: Int, permissions: Array<String>, grantResults: IntArray) {
super.onRequestPermissionsResult(requestCode, permissions, grantResults)
// NOTE: delegate the permission handling to generated function
onRequestPermissionsResult(requestCode, grantResults)
}
@NeedsPermission(Manifest.permission.CAMERA)
override fun showCamera() {
cameraIntent()
}
@NeedsPermission(Manifest.permission.READ_EXTERNAL_STORAGE)
override fun showGallery() {
galleryIntent()
}
@OnPermissionDenied(Manifest.permission.CAMERA)
override fun showDeniedForCamera() {
permissionDialog("Camera permission is necessary",{ showCameraWithPermissionCheck() })
}
@OnPermissionDenied(Manifest.permission.READ_EXTERNAL_STORAGE)
override fun showDeniedForGallery() {
permissionDialog("Gallery permission is necessary",{ showGalleryWithPermissionCheck() })
}
"Generated onRequestPermissionsResult method not called." error.
There is a lint error , but the file was generated and i dont know why the error appear..
Lint error with :
"Generated onRequestPermissionsResult method not called." error.

Does it happens only if you define multiple permission requests?
No, it happens for one permission either..
Got it. I don't think current lint support new kotlin feature.
Currently, we need XxxActivityPermissionsDispatcher. onRequestPermissionsResult call.
https://github.com/permissions-dispatcher/PermissionsDispatcher/blob/master/lint/src/main/java/permissions/dispatcher/CallOnRequestPermissionsResultDetector.java#L105-L108
Sorry for the late, we'll address in next ver.