Size
0.30 kb
useNavigatorPermission
Query and track navigator permissions.
Installation
Usage
Query a permission state:
The state will be updated in real-time as the user interacts with the browser.
API Reference
UseNavigatorPermissionOptions
The options for the useNavigatorPermission hook.
| Prop | Type | Default | 
|---|---|---|
name | NavigatorPermissionName | - | 
UseNavigatorPermissionReturn
The return value of the useNavigatorPermission hook.
| Prop | Type | Default | 
|---|---|---|
state | NavigatorPermissionState | - |