pl.wendigo.chrome.api.browser / PermissionDescriptor

PermissionDescriptor

data class PermissionDescriptor (source)

Definition of PermissionDescriptor defined in the Permissions API: https://w3c.github.io/permissions/#dictdef-permissiondescriptor.

Link
Browser#PermissionDescriptor type documentation.

Constructors

<init>

PermissionDescriptor(name: String, sysex: Boolean? = null, userVisibleOnly: Boolean? = null, type: String? = null)

Definition of PermissionDescriptor defined in the Permissions API: https://w3c.github.io/permissions/#dictdef-permissiondescriptor.

Properties

name

val name: String

Name of permission. See https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/permissions/permission_descriptor.idl for valid permission names.

sysex

val sysex: Boolean?

For "midi" permission, may also specify sysex control.

type

val type: String?

For "wake-lock" permission, must specify type as either "screen" or "system".

userVisibleOnly

val userVisibleOnly: Boolean?

For "push" permission, may specify userVisibleOnly. Note that userVisibleOnly = true is the only currently supported type.