PluginDataHandler
A handler for loading and saving data to the plugin’s data file.
Import:
import { PluginDataHandler } from 'obsidian-dev-utils/obsidian/data-handler';Signature:
export class PluginDataHandler implements DataHandlerImplements: DataHandler
Constructor
new PluginDataHandler(plugin: Plugin)Creates a new plugin data handler.
Methods
| Method | Returns | Description |
|---|---|---|
| loadData() | Promise<unknown> | Loads data from the plugin's data file. |
| saveData(data) | Promise<void> | Saves data to the plugin's data file. |