data class PermissionDescriptor
(source)
Definition of PermissionDescriptor defined in the Permissions API: https://w3c.github.io/permissions/#dictdef-permissiondescriptor.
Link
Browser#PermissionDescriptor type documentation.
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. |
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. |
|
val sysex: Boolean?
For "midi" permission, may also specify sysex control. |
|
val type: String?
For "wake-lock" permission, must specify type as either "screen" or "system". |
|
val userVisibleOnly: Boolean?
For "push" permission, may specify userVisibleOnly. Note that userVisibleOnly = true is the only currently supported type. |