foo-webview-sdk
    Preparing search index...

    Variable utilsConst

    utils: {
        echo: (message: string) => Promise<TestEchoResponse>;
        formatTitle: (
            pattern: string,
            path?: string,
        ) => Promise<TitleformatEvalResponse>;
        getFileInfo: (path: string) => Promise<MetadataReadResponse>;
        ping: () => Promise<TestPingResponse>;
    } = ...

    utils — diagnostic / glue helpers.

    formatTitle / getFileInfo are intentional façades over titleformat.eval / metadata.read respectively.

    Type Declaration

    • echo: (message: string) => Promise<TestEchoResponse>

      Round trip through test.echo; the message comes back as echo.

    • formatTitle: (pattern: string, path?: string) => Promise<TitleformatEvalResponse>

      Façade over titleformat.eval; an omitted or empty path evaluates the playing track.

    • getFileInfo: (path: string) => Promise<MetadataReadResponse>

      Façade over metadata.read.

    • ping: () => Promise<TestPingResponse>

      Round trip through test.ping; timestamp is the host's Unix time in seconds.