PermissionType

The list of supported permission types.

Entries

Link copied to clipboard

The permission type is unknown.

Link copied to clipboard

Access to MIDI devices with SysEx messages support.

Link copied to clipboard

Permission to show desktop notifications.

Link copied to clipboard

Access to precise geographic location.

Link copied to clipboard

Access to a platform-specific identifier for protected media content (e.g. Widevine CDM on Android/ChromeOS/Windows).

Link copied to clipboard

Access to MIDI devices (without SysEx).

Link copied to clipboard

Permission to use persistent storage (quota beyond the default limit).

Link copied to clipboard

Access to the microphone for audio capture.

Link copied to clipboard

Access to the camera for video capture.

Link copied to clipboard

Permission for a service worker to perform background data synchronization.

Link copied to clipboard

Access to device sensors such as accelerometer, gyroscope, and magnetometer.

Link copied to clipboard

Permission for a service worker to handle payment requests via the Payment Handler API.

Link copied to clipboard

Permission for a service worker to download large resources in the background after the user leaves the page.

Link copied to clipboard

Permission to detect when the user is idle (inactive or screen locked).

Link copied to clipboard

Permission for a service worker to periodically wake up and sync data in the background.

Link copied to clipboard

Permission to prevent the screen from turning off or dimming.

Link copied to clipboard

Permission to prevent the system from suspending (e.g. to continue background computation).

Link copied to clipboard

Read and write access to the system clipboard.

Link copied to clipboard

Write-only access to the system clipboard with content sanitization.

Link copied to clipboard

Permission to create immersive VR sessions via the WebXR Device API.

Link copied to clipboard

Permission for a cross-origin iframe to access its first-party cookies via the Storage Access API.

Link copied to clipboard

Permission to control camera pan, tilt, and zoom (PTZ) when capturing video.

Link copied to clipboard

Permission to enumerate connected screens and place windows on them via the Multi-Screen Window Placement API.

Link copied to clipboard

Access to locally installed fonts.

Link copied to clipboard

Permission to capture display, window, or tab contents via getDisplayMedia().

Link copied to clipboard

Permission for a top-level document to access unpartitioned cookies via the Storage Access API.

Link copied to clipboard

Permission to scroll or zoom a surface captured via getDisplayMedia().

Link copied to clipboard

Permission to select a specific audio output device (speaker/headphones).

Link copied to clipboard

Permission to capture system-level keyboard shortcuts (e.g. Escape, Alt+Tab) via the Keyboard Lock API.

Link copied to clipboard

Permission to lock the mouse pointer to the page via the Pointer Lock API.

Link copied to clipboard

Permission to enter fullscreen mode without a prior user gesture.

Link copied to clipboard

Permission to access hand/finger-tracking data during a WebXR session.

Link copied to clipboard

Permission for a public website to access local network resources.

Link copied to clipboard

Permission for a page to access local network addresses (e.g. 192.168.x.x). Part of Private Network Access.

Link copied to clipboard

Permission for a page to access localhost / 127.0.0.1. Part of Private Network Access.

Link copied to clipboard

Access to approximate (city-level) geographic location.

Functions

Link copied to clipboard
open fun valueOf(name: String): PermissionType

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.