Package com.google.accompanist.permissions

Types

ExperimentalPermissionsApi
Link copied to clipboard
annotation class ExperimentalPermissionsApi
MultiplePermissionsState
Link copied to clipboard
interface MultiplePermissionsState
A state object that can be hoisted to control and observe multiple permissions status changes.
PermissionState
Link copied to clipboard
interface PermissionState
A state object that can be hoisted to control and observe permission status changes.

Functions

PermissionRequired
Link copied to clipboard
fun PermissionRequired(permissionState: PermissionState, permissionNotGrantedContent: @Composable() () -> Unit, permissionNotAvailableContent: @Composable() () -> Unit, content: @Composable() () -> Unit)
Composable that exercises the permissions flows as described in the documentation when a permission is required to be granted for content.
PermissionsRequired
Link copied to clipboard
fun PermissionsRequired(multiplePermissionsState: MultiplePermissionsState, permissionsNotGrantedContent: @Composable() () -> Unit, permissionsNotAvailableContent: @Composable() () -> Unit, content: @Composable() () -> Unit)
Composable that exercises the permissions flows as described in the documentation when multiple permissions are required to be granted for content.
rememberMultiplePermissionsState
Link copied to clipboard
fun rememberMultiplePermissionsState(permissions: List<String>): MultiplePermissionsState
Creates a MultiplePermissionsState that is remembered across compositions.
rememberPermissionState
Link copied to clipboard
fun rememberPermissionState(permission: String): PermissionState
Creates a PermissionState that is remembered across compositions.