android-components / mozilla.components.browser.engine.gecko.permission / GeckoPermissionRequest / Content

Content

data class Content : GeckoPermissionRequest (source)

Represents a gecko-based content permission request.

Constructors

<init>

Content(uri: String, type: Int, callback: Callback)

Represents a gecko-based content permission request.

Properties

uri

val uri: String

the URI of the content requesting the permissions.

Inherited Properties

permissions

open val permissions: List<Permission>

the list of requested permissions.

Inherited Functions

grant

open fun grant(permissions: List<Permission>): Unit

Grants the provided permissions, or all requested permissions, if none are provided.

reject

open fun reject(): Unit

Rejects the requested permissions.

Companion Object Properties

permissionsMap

val permissionsMap: Map<Int, Permission>