MetadataCache.on(‘changed’) method
Called when a file has been indexed, and its (updated) cache is now available.
Note: This is not called when a file is renamed for performance reasons. You must hook the vault rename event for those.
Signature:
on(name: 'changed', callback: (file: TFile, data: string, cache: CachedMetadata) => any, ctx?: any): EventRef;
Parameters
Parameter | Type | Description |
---|---|---|
name | ’changed’ | |
callback | (file: TFile , data: string, cache: CachedMetadata ) ⇒ any | |
ctx | any | (Optional) |
Returns: