requestPermission

abstract fun requestPermission(permission: String): Boolean

Used to request a permission or returns true if already granted.

Return

Returns true if permission is already granted and false if the permission needs to be requested.

Parameters

permission

The permission which we want to be be granted.