hasPermission

fun hasPermission(context: Context, permission: String): Boolean

Tests if the provided permission is already granted.