requestPermission

abstract suspend fun requestPermission(): Boolean

Requests the user for permission to use the device.

This blocks until the user grants or denies the permission.

Return

whether permission was granted.