Duplex message caller
Connection status with the main app
OptionalsettingsThe 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: anyInject 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: Record<string, any>same as the model in provideModel
Optionalcallback: (e: any) => void | {}a function to run when the main Logseq app is ready
Optionalmodel: Record<string, any>Optionalcallback: (e: any) => void | {}Remove 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
The plugin configurations from package.json