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

Media

data class Media : GeckoPermissionRequest (source)

Represents a gecko-based media permission request.

Constructors

Name Summary
<init> Media(uri: String, videoSources: List<MediaSource>, audioSources: List<MediaSource>, callback: MediaCallback)
Represents a gecko-based media permission request.

Properties

Name Summary
uri val uri: String
the URI of the content requesting the permissions.

Inherited Properties

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

Functions

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

Companion Object Functions

Name Summary
mapPermission fun mapPermission(mediaSource: MediaSource): Permission