pl.wendigo.chrome.api.browser / GrantPermissionsRequest

GrantPermissionsRequest

data class GrantPermissionsRequest (source)

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

Grant specific permissions to the given origin and reject all others.

Link
Browser#grantPermissions method documentation.

See Also

BrowserOperations.grantPermissions

Constructors

<init>

GrantPermissionsRequest(origin: String, permissions: List<PermissionType>, browserContextId: BrowserContextID? = null)

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

Properties

browserContextId

val browserContextId: BrowserContextID?

BrowserContext to override permissions. When omitted, default browser context is used.

origin

val origin: String

permissions

val permissions: List<PermissionType>