checkPermission

abstract fun checkPermission(permission: String): Boolean

Used to check whether a permission is granted.

Return

Whether the permission is granted or not.

Parameters

permission

The permission for which we want to check if it is granted. Use Manifest.permission