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

SystemPermissionRequest

class SystemPermissionRequest : PermissionRequest (source)

WebView-based implementation of PermissionRequest.

Constructors

Name Summary
<init> SystemPermissionRequest(nativeRequest: <ERROR CLASS>)
WebView-based implementation of PermissionRequest.

Properties

Name Summary
permissions val permissions: <ERROR CLASS>
List of requested permissions.
uri val uri: String
The origin URI which caused the permissions to be requested.

Functions

Name Summary
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

Name Summary
containsVideoAndAudioSources open fun containsVideoAndAudioSources(): Boolean
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

Name Summary
permissionsMap val permissionsMap: <ERROR CLASS>

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.