hasPermissions

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

Tests if the provided permissions are already granted.