android-components / mozilla.components.feature.sitepermissions / SitePermissions

SitePermissions

data class SitePermissions (source)

A site permissions and its state.

Types

Name Summary
Status enum class Status

Constructors

Name Summary
<init> SitePermissions(origin: String, location: Status = NO_DECISION, notification: Status = NO_DECISION, microphone: Status = NO_DECISION, camera: Status = NO_DECISION, bluetooth: Status = NO_DECISION, localStorage: Status = NO_DECISION, autoplayAudible: Status = NO_DECISION, autoplayInaudible: Status = NO_DECISION, savedAt: Long)
A site permissions and its state.

Properties

Name Summary
autoplayAudible val autoplayAudible: Status
autoplayInaudible val autoplayInaudible: Status
bluetooth val bluetooth: Status
camera val camera: Status
localStorage val localStorage: Status
location val location: Status
microphone val microphone: Status
notification val notification: Status
origin val origin: String
savedAt val savedAt: Long

Functions

Name Summary
get operator fun get(permissionType: Permission): Status
Gets the current status for a Permission type

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.