Skip to content

InternalPluginInstance<InternalPlugin>

Unofficial

Base interface for an internal plugin instance, providing lifecycle hooks and metadata.

Import:

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

Signature:

export interface InternalPluginInstance<InternalPlugin>

Properties

PropertyTypeDescription
descriptionstringHuman-readable description of this plugin.
idstringUnique identifier for this plugin.
namestringHuman-readable display name of this plugin.

Methods

MethodReturnsDescription
init(app, plugin)voidInitialize the plugin instance with app and plugin references.
onDisable(app, plugin)voidCalled when the plugin is disabled.
onEnable(app, plugin)Promise<void>Called when the plugin is enabled.
onUserDisable(app)voidCalled when the user manually disables the plugin.
onUserEnable(app)voidCalled when the user manually enables the plugin.

Links to this page: