Package-level declarations
Types
Link copied to clipboard
annotation class ExperimentalPermissionsApi
Link copied to clipboard
A state object that can be hoisted to control and observe multiple permissions status changes.
Link copied to clipboard
A state object that can be hoisted to control and observe permission status changes.
Link copied to clipboard
Model of the status of a permission. It can be granted or denied. If denied, the user might need to be presented with a rationale.
Functions
Link copied to clipboard
fun rememberMultiplePermissionsState(permissions: List<String>, onPermissionsResult: (Map<String, Boolean>) -> Unit = {}): MultiplePermissionsState
Creates a MultiplePermissionsState that is remembered across compositions.
Link copied to clipboard
fun rememberPermissionState(permission: String, onPermissionResult: (Boolean) -> Unit = {}): PermissionState
Creates a PermissionState that is remembered across compositions.