Package-level declarations

Types

Link copied to clipboard
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 = {}, previewPermissionStatuses: Map<String, PermissionStatus> = emptyMap()): MultiplePermissionsState

Creates a MultiplePermissionsState that is remembered across compositions.

Link copied to clipboard
fun rememberPermissionState(permission: String, onPermissionResult: (Boolean) -> Unit = {}): PermissionState
fun rememberPermissionState(permission: String, onPermissionResult: (Boolean) -> Unit = {}, previewPermissionStatus: PermissionStatus = PermissionStatus.Granted): PermissionState

Creates a PermissionState that is remembered across compositions.

Properties

Link copied to clipboard

true if the permission is granted.

Link copied to clipboard

true if a rationale should be presented to the user.