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


data class SitePermissionsRules (source)

Indicate how site permissions must behave by permission category.


Name Summary
Action enum class Action
AutoplayAction enum class AutoplayAction
Autoplay requests will never prompt the user


Name Summary
<init> SitePermissionsRules(camera: Action, location: Action, notification: Action, microphone: Action, autoplayAudible: AutoplayAction, autoplayInaudible: AutoplayAction)


Name Summary
autoplayAudible val autoplayAudible: Action
autoplayInaudible val autoplayInaudible: Action
camera val camera: Action
location val location: Action
microphone val microphone: Action
notification val notification: Action


Name Summary
toSitePermissions fun toSitePermissions(origin: String, savedAt: Long = System.currentTimeMillis()): SitePermissions
Converts a SitePermissionsRules object into a SitePermissions .

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.