foo-webview-sdk
    Preparing search index...

    Interface MetadbChangedPayload

    Payload of the metadb:changed event. The metadata of tracks changed: tags were written or read again, or a component such as foo_playcount asked foobar2000 to show its fields anew (fromHook). Each entry names its track by handle, the key the track rows of other methods carry, so a single track of a cue sheet or a multi-track file can be told from the rest of the file.

    interface MetadbChangedPayload {
        count: number;
        fromHook: boolean;
        handles: string[];
        timestamp: number;
        tracks: MetadbChangedTrackItem[];
        truncated: boolean;
    }
    Index
    count: number

    How many tracks changed, at least 1; can exceed the length of tracks.

    fromHook: boolean

    true when the files themselves did not change and a component such as foo_playcount asked for its fields to be shown anew.

    handles: string[]

    The handle of every changed track, in no particular order. Empty when truncated. To read what a page shows for them, pass them as the paths of titleformat.evalFieldsBatch.

    timestamp: number

    When the event was sent, in milliseconds since the Unix epoch.

    Up to 50 changed track entries in unspecified order. Invalid entries are skipped, meaning the returned array length may be less than min(count, 50). Complete track identifiers are listed in handles.

    truncated: boolean

    true when more than 5000 tracks changed at once. handles is then empty, and a page should read again everything it shows.