foo-webview-sdk
    Preparing search index...

    Variable artworkConst

    artwork: {
        getAvailableArtwork: (
            path: string,
        ) => Promise<ArtworkGetAvailableArtworkResponse>;
        getAvailableTypes: (
            path?: string,
        ) => Promise<ArtworkGetAvailableTypesResponse>;
        getBatch: (
            paths: string[],
            type?: AlbumArtType,
        ) => Promise<ArtworkGetBatchResponse>;
        getByPath: (
            path: string,
            type?: AlbumArtType,
        ) => Promise<ArtworkGetByPathResponse>;
        getByPlaylistItem: (
            playlist: PlaylistRef,
            index: number,
            type?: AlbumArtType,
        ) => Promise<ArtworkGetByPlaylistItemResponse>;
        getCurrent: (type?: AlbumArtType) => Promise<ArtworkGetCurrentResponse>;
        getFb2kUrl: (
            type?: AlbumArtType,
            options?: Pick<ArtworkGetFb2kUrlParams, "maxSize">,
        ) => Promise<ArtworkGetFb2kUrlResponse>;
        getFb2kUrlByPath: (
            path: string,
            type?: AlbumArtType,
            options?: Pick<ArtworkGetFb2kUrlByPathParams, "maxSize">,
        ) => Promise<ArtworkGetFb2kUrlByPathResponse>;
        getFb2kUrlByPathBatch: (
            items: string[] | ArtworkBatchItem[],
            opts?: { maxSize?: number; type?: AlbumArtType },
        ) => Promise<ArtworkGetFb2kUrlByPathBatchResponse>;
        getFolderImages: (
            directory: string,
        ) => Promise<ArtworkGetFolderImagesResponse>;
        getForTrack: (
            path: string,
            type?: AlbumArtType,
            options?: ArtworkOptions,
        ) => Promise<ArtworkGetForTrackResponse>;
        getLyrics: (path?: string) => Promise<ArtworkGetLyricsResponse>;
        getMetadata: (path?: string) => Promise<ArtworkGetMetadataResponse>;
        withMaxSize: (url: string, maxSize?: number) => string;
    } = ...

    artwork — album art retrieval namespace.

    Every reader answers with the host's success envelope. available tells whether a picture (or a URL) exists for the request; a refused call has success: false with a code.

    Type Declaration