Skip to content

WebviewerPluginInstance

Unofficial

Plugin instance for the web viewer, providing an embedded web browser within Obsidian.

Import:

import type { WebviewerPluginInstance } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface WebviewerPluginInstance extends InternalPluginInstance<WebviewerPlugin>

Extends: InternalPluginInstance<WebviewerPlugin>

Properties

PropertyTypeDescription
dbWebviewerDBStoreStored history items and cached fav icons.
defaultOnfalseWhether this plugin is enabled by default.
descriptionstringHuman-readable description of this plugin.
(Inherited from InternalPluginInstance)
idstringUnique identifier for this plugin.
(Inherited from InternalPluginInstance)
namestringHuman-readable display name of this plugin.
(Inherited from InternalPluginInstance)
pendingIgnoredURLsstring[]URLs that are pending to be added to the ignore list.

Methods

MethodReturnsDescription
getSearchEngineUrl(searchQuery)stringBuild a search engine URL for the given search query.
handleOpenUrl(event)voidHandle a custom open URL event from the webview.
init(app, plugin)voidInitialize the plugin instance with app and plugin references.
(Inherited from InternalPluginInstance)
onDisable(app, plugin)voidCalled when the plugin is disabled.
(Inherited from InternalPluginInstance)
onEnable(app, plugin)Promise<void>Called when the plugin is enabled.
(Inherited from InternalPluginInstance)
onUserDisable(app)voidCalled when the user manually disables the plugin.
(Inherited from InternalPluginInstance)
onUserEnable(app)voidCalled when the user manually enables the plugin.
(Inherited from InternalPluginInstance)
openUrl(url, newLeaf?, active?)voidOpen a URL in the web viewer.
openUrlExternally(url)voidOpen a URL in the system default browser.
updateSession()voidUpdate the current browsing session state.

Links to this page: