The plugin configurations from package.json
Duplex message caller
Connection status with the main app
The plugin user settings
Optionalcontext: anyCalls each of the listeners registered for a given event.
Return an array listing the events for which the emitter has registered listeners.
hide the plugin's UI
Optionalopts: { restoreEditingCursor: boolean }Return the number of listeners listening to a given event.
Return the listeners registered for a given event.
Optionalfn: (...args: any[]) => voidOptionalcontext: anyOptionalonce: booleanAdd a listener for a given event.
Optionalcontext: anyAdd a one-time listener for a given event.
Optionalcontext: anyCreate a object to hold the methods referenced in provideUI
Inject custom UI at specific DOM node.
Event handlers can not be passed by string, so you need to create them in provideModel
The main Logseq app is ready to run the plugin
Optionalmodel: anysame as the model in provideModel
Optionalcallback: anyRemove all listeners, or those of the specified event.
Optionalevent: LSPluginUserEventsRemove the listeners of a given event.
Optionalfn: (...args: any[]) => voidOptionalcontext: anyOptionalonce: booleanshow the plugin's UI
Optionalopts: { autoFocus: boolean }toggle the plugin's UI
User plugin instance from global namespace
logseq.Example