Skip to main content

check_or_request

Function check_or_request 

Source
pub fn check_or_request(
    perms: &SharedPermissions,
    origin: &str,
    kind: PermissionKind,
) -> PermissionStatus
Expand description

Looks up the decision for (origin, kind), queueing a prompt when undecided.

Returns PermissionStatus::Pending both when this request becomes the active prompt and when another prompt is already showing (the retry will queue it once the slot frees up).