Skip to content

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 DataHandler

Implements: DataHandler

Constructor

new PluginDataHandler(plugin: Plugin)

Creates a new plugin data handler.

Methods

MethodReturnsDescription
loadData()Promise<unknown>Loads data from the plugin's data file.
saveData(data)Promise<void>Saves data to the plugin's data file.