Permission Extensions
Check Permission
fun Context.checkPermission(permission: String, onGranted: () -> Unit, onDenied: () -> Unit) {
if (ContextCompat.checkSelfPermission(this, permission) == PackageManager.PERMISSION_GRANTED) {
onGranted()
} else {
onDenied()
}
}