requestGrants

fun requestGrants(context: Context, androidGrants: List<String>): String

Launch this Activity to request one or more grants.

On success the returned id has a pending result the caller must await and then cleanup. When the guard is already held, the returned id's result is completed with GrantResult.ERROR but left in the map, so the caller still awaits a determinate answer rather than finding nothing and returning silently.