foo-webview-sdk
    Preparing search index...

    Class FbTitleFormat

    FbTitleFormat — title-format script accessor.

    Mirrors the SMP API: a wrapper around a single titleformat expression that can be evaluated against the current track (Eval), a single handle (EvalWithMetadb), or a list (EvalWithMetadbs).

    Backend mapping:

    • Eval / EvalWithMetadb → titleformat.eval ({ path, pattern }).
    • EvalWithMetadbs → titleformat.evalBatch ({ paths, pattern }).

    Each path is the track's handle id, |subsong:N suffix included.

    The single-pattern shape is preserved (rather than upgraded to the newer titleformat.evalFields API) because SMP scripts depend on the one-expression-per-call contract.

    Index
    • Evaluate against the current now-playing track. Returns the empty string when nothing is playing or the bridge is unavailable.

      Parameters

      • Optional_force: boolean

      Returns Promise<string>

    • Evaluate against a single handle / track-info object.

      Parameters

      • handleLike: unknown

      Returns Promise<string>

    • Batch evaluate against a list of handles.

      Parameters

      • handleListLike: unknown

      Returns Promise<string[]>