android-components / mozilla.components.browser.engine.system.permission / SystemPermissionRequest

# SystemPermissionRequest

`class SystemPermissionRequest : PermissionRequest` (source)

WebView-based implementation of PermissionRequest.

### Constructors

<init> | `SystemPermissionRequest(nativeRequest: PermissionRequest)` WebView-based implementation of PermissionRequest.

### Properties

permissions | `val permissions: List<Permission>` List of requested permissions.
uri | `val uri: String` The origin URI which caused the permissions to be requested.

### Functions

grant | `fun grant(permissions: List<Permission>): Unit` Grants the provided permissions, or all requested permissions, if none are provided.
reject | `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.

### Companion Object Properties

permissionsMap | `val permissionsMap: Map<String, Permission>`