hasPermissions

fun hasPermissions(context: Context, permissions: Array<String>, mustHaveAll: Boolean = true): Boolean

Tests if the provided permissions are already granted.