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

GeckoPermissionRequest

sealed class GeckoPermissionRequest : PermissionRequest (source)

Gecko-based implementation of PermissionRequest.

Types

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

Name Summary
permissions open val permissions: List<Permission>
the list of requested permissions.

Inherited Properties

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

Functions

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

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.

Inheritors

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