PermissionUiState
class PermissionUiState(val status: PermissionStatus, val request: () -> Unit, val openAppSettings: () -> Unit, val isRuntimeGated: Boolean = true)(source)
A reactive snapshot of a runtime permission plus the actions a caller can take. Produced by the rememberXxxPermissionState() composables and recomputed on ON_RESUME so it stays fresh when the user returns from a permission dialog or the system settings screen.
Intentionally NOT a data class: the lambda members would give equals/hashCode reference semantics, advertising value equality the type cannot honor. Callers read status/isGranted and invoke the actions; they do not compare instances.
Constructors
Link copied to clipboard
constructor(status: PermissionStatus, request: () -> Unit, openAppSettings: () -> Unit, isRuntimeGated: Boolean = true)