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

# GeckoPermissionRequest

`sealed class GeckoPermissionRequest : PermissionRequest` (source)

Gecko-based implementation of PermissionRequest.

### Types

App | `data class App : GeckoPermissionRequest` Represents a gecko-based application permission request.
Content | `data class Content : GeckoPermissionRequest` Represents a gecko-based content permission request.
Media | `data class Media : GeckoPermissionRequest` Represents a gecko-based media permission request.

### Properties

permissions | `open val permissions: List<Permission>` the list of requested permissions.

### Inherited Properties

uri | `abstract val uri: String?` The origin URI which caused the permissions to be requested.

### 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.

### Inherited Functions

grantIf | `open fun grantIf(predicate: (Permission) -> Boolean): Boolean` Grants this permission request if the provided predicate is true for any of the requested permissions.

### Inheritors

App | `data class App : GeckoPermissionRequest` Represents a gecko-based application permission request.
Content | `data class Content : GeckoPermissionRequest` Represents a gecko-based content permission request.
Media | `data class Media : GeckoPermissionRequest` Represents a gecko-based media permission request.