hasPermission

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

Determines whether the app has been granted with a permission or not.

Parameters

permission

The name of the permission to check.