Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The state
read-only property of the PermissionStatus
interface returns the state of a requested permission. This property returns one of 'granted'
, 'denied'
, or 'prompt'
.