Hi! This is an Android Library that provides a feature for the developer to handle permission in android so please take a look at the instructions below, Thank!
To get a Git project into your build:
Step 1. Add the JitPack repository to your build file
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.Pisey-Nguon:PermissionHandler:TAG'
}
Note: TAG is a version of the package so please change it based here
Step 3. Implementation example
requestTakePhoto {
view?.findViewById<AppCompatImageView>(R.id.imageCamera)?.setImageURI(Uri.parse(it))
}
Note: Don't forget to put permissions on manifest
This is a behavior of PermissionHandler