
Manages runtime permissions, prompts and status via activity-bound controller; coroutine-friendly API, usable isGranted checks outside setup, and lifecycle-aware request handling.
add implementation("eu.codlab:kotlin-permissions:${extVersion}") to your dependencies block.
In your Activities call (for instance onResume) : PermissionsController.setActivity(this)
Note : if you miss this part, actions to ask for permissions or getting the full permission status will hang until you configure it properly
isGranted is the only method which will be able to be used outside of any specific configurations.
Inside a coroutine, call :
AuthManager.createSession(externalId) { { _: String?, _: Boolean ->
// here, manage network call to bring a new Client Access Token v2
return ""
}
add implementation("eu.codlab:kotlin-permissions:${extVersion}") to your dependencies block.
In your Activities call (for instance onResume) : PermissionsController.setActivity(this)
Note : if you miss this part, actions to ask for permissions or getting the full permission status will hang until you configure it properly
isGranted is the only method which will be able to be used outside of any specific configurations.
Inside a coroutine, call :
AuthManager.createSession(externalId) { { _: String?, _: Boolean ->
// here, manage network call to bring a new Client Access Token v2
return ""
}