-
Notifications
You must be signed in to change notification settings - Fork 1
MozillaBrowserExtensionManifest
The manifest format for the browser extension
struct MozillaBrowserExtensionManifest: Codable
This is not complete or up to spec. Please see: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json for a list of all the keys and values
Codable
Default initialization
init(_ path: URL) throws
- path: The path of the manifest
The author of the extension
let author: String?
The action object that specifies a dropdown tab on the toolbar of the browser.
let browserAction: BrowserAction?
The name of the default locale bundle to get localized keys
from. Not required unless _locale
path exists at the root
of the extension folder
let defaultLocale: String?
The url leading to the homepage of the author of the extension
let homepageURL: String?
An array of icon paths keyed by size. Paths are relative to the extension folder.
let icons: [String: String]?
The version of the manifest. Latest is v3
let manifestVersion: Int
The name of the extension.
let name: String
- Localizable
The UI specification for the extension given options page
let optionsUi: OptionsUI?
A list of permissions the extension has to provide when accessing browser apis that handle user information
let permissions: [String]?
Version of the plugin. Created by the author. This is required
let version: String
Gets the extension icon from the main icons array
func getExtensionIcon(extensionPath path: URL) -> NSImage?
- manifest: The manifest object to get the image of
Generated at 2022-01-11T21:56:49-0800 using swift-doc 1.0.0-rc.1.
Types
- BrowserAction
- MozillaBrowserExtensionManifest
- OptionsUI
- OrionBrowserExtension
- OrionBrowserExtensionError
- OrionDelegate
- OrionExtensionManager
- OrionMenu
- OrionSearchField
- OrionSearchFieldController
- OrionTabStretcherView
- OrionTabbedLocationViewController
- OrionTopSitesAPI
- OrionUserContentController
- OrionWindowController
- OrionWindowType