interface PermissionRequest
(source)
Represents a permission request, used when engines need access to protected resources. Every request must be handled by either calling grant or reject.
abstract val permissions: List<Permission>
List of requested permissions. |
|
abstract val uri: String?
The origin URI which caused the permissions to be requested. |
abstract fun grant(permissions: List<Permission> = this.permissions): Unit
Grants the provided permissions, or all requested permissions, if none are provided. |
|
open fun grantIf(predicate: (Permission) -> Boolean): Boolean
Grants this permission request if the provided predicate is true for any of the requested permissions. |
|
abstract fun reject(): Unit
Rejects the requested permissions. |
sealed class GeckoPermissionRequest : PermissionRequest
Gecko-based implementation of PermissionRequest. |
|
class SystemPermissionRequest : PermissionRequest
WebView-based implementation of PermissionRequest. |