PermissionChecker
class PermissionChecker
Functions
Link copied to clipboard
fun checkAudioRecordPermissions(view: View, onPermissionDenied: () -> Unit = { }, onPermissionGranted: () -> Unit = { })
Link copied to clipboard
fun checkCameraPermissions(view: View, onPermissionDenied: () -> Unit = { }, onPermissionGranted: () -> Unit)
Link copied to clipboard
fun checkFilePermissions(view: View, onPermissionDenied: () -> Unit = { }, onPermissionGranted: () -> Unit)
Link copied to clipboard
fun checkMediaPermissions(view: View, onPermissionDenied: () -> Unit = { }, onPermissionGranted: () -> Unit)
Link copied to clipboard
fun checkWriteStoragePermissions(view: View, onPermissionDenied: () -> Unit = { }, onPermissionGranted: () -> Unit)
Checks is Manifest.permission.WRITE_EXTERNAL_STORAGE is needed an requests if necessary. Permission will be requested on versions below Build.VERSION_CODES.Q or if legacy external storage is enabled. Simply runs onPermissionGranted if the permission is not needed.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Check if Camera Permission needs to be requested to the user