SetPermissionRequest

data class SetPermissionRequest(permission: PermissionDescriptor, setting: PermissionSetting, origin: String?, browserContextId: BrowserContextID?)

Represents request frame that can be used with Browser#setPermission operation call.

Set permission settings for given origin.

See also

Constructors

SetPermissionRequest
Link copied to clipboard
fun SetPermissionRequest(permission: PermissionDescriptor, setting: PermissionSetting, origin: String? = null, browserContextId: BrowserContextID? = null)

Properties

browserContextId
Link copied to clipboard
val browserContextId: BrowserContextID? = null
Context to override.
origin
Link copied to clipboard
val origin: String? = null
Origin the permission applies to, all origins if not specified.
permission
Link copied to clipboard
val permission: PermissionDescriptor
Descriptor of permission to override.
setting
Link copied to clipboard
val setting: PermissionSetting
Setting of the permission.

Sources

jvm source
Link copied to clipboard