Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The PermissionStatus
interface of the Permissions API provides the state of an object and an event handler for monitoring changes to said state.