Skip to main content

PermissionClient

interface

Reads what the user has granted, denied, and is being asked right now. This is an observation surface. Nothing here grants or revokes anything. Read it to show the current state in your own UI.

interface PermissionClient

Import

import { PermissionClient } from '@modular/sdk';

Members3

snapshot
ReadonlySignal<PermissionSnapshotDto>

The live snapshot, for code that reacts to changes.

getSnapshot
() => PermissionSnapshotDto

The snapshot right now, for one off reads.

subscribe
(listener: () => void) => Disposable

Runs `listener` whenever any grant or pending request changes.

Notes

category
Context