android-components / mozilla.components.concept.engine.webextension / Metadata


data class Metadata (source)

Provides information about a WebExtension.


Name Summary
<init> Metadata(version: String, permissions: List<String>, hostPermissions: List<String>, name: String?, description: String?, developerName: String?, developerUrl: String?, homePageUrl: String?, optionsPageUrl: String?, openOptionsPageInTab: Boolean, disabledFlags: DisabledFlags, baseUrl: String)
Provides information about a WebExtension.


Name Summary
baseUrl val baseUrl: String
Base URL for pages of this extension. Can be used to determine if a page is from / belongs to this extension.
description val description: String?
Description of the extension:
developerName val developerName: String?
Name of the extension developer:
developerUrl val developerUrl: String?
Url of the developer:
disabledFlags val disabledFlags: DisabledFlags
Describes the reason (or reasons) why an extension is disabled.
homePageUrl val homePageUrl: String?
Url of extension’s homepage:
hostPermissions val hostPermissions: List<String>
Required host permissions:
name val name: String?
Name of the extension:
openOptionsPageInTab val openOptionsPageInTab: Boolean
Whether or not the options page should be opened in a new tab:
optionsPageUrl val optionsPageUrl: String?
Options page:
permissions val permissions: List<String>
Required extension permissions:
version val version: String
Version string:

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.