foo-webview-sdk
    Preparing search index...

    Variable playcountConst

    playcount: {
        get: (path: string) => Promise<PlaycountGetResponse>;
        getBatch: (paths: string[]) => Promise<PlaycountGetBatchResponse>;
        getStats: () => Promise<PlaycountGetStatsResponse>;
        set: (path: string, count: number) => Promise<PlaycountSetResponse>;
    } = ...

    playcount — play-count read/write namespace.

    get(path) is a convenience wrapper around the batch variant.

    Type Declaration

    • get: (path: string) => Promise<PlaycountGetResponse>

      The playcount entry of one track: playcount.get with paths: [path], so the entry is results[0].

    • getBatch: (paths: string[]) => Promise<PlaycountGetBatchResponse>

      Batch fetch playcount entries for multiple tracks. Returns the full envelope so callers can inspect the aggregate count field as well as per-track success flags inside results.

    • getStats: () => Promise<PlaycountGetStatsResponse>

      Aggregate library-wide playcount statistics.

    • set: (path: string, count: number) => Promise<PlaycountSetResponse>

      foo_playcount does not currently expose a public API for mutating playback statistics. The C++ handler is a placeholder that always fails with code: 'NOT_SUPPORTED'. The count argument is retained for signature compatibility but is not sent to the host (the handler never reads it). Use fb.rating.set for rating mutation, or trigger play counts via actual playback.