Hiyve Components - v1.0.0
    Preparing search index...
    interface ThumbnailGenerator {
        canHandle: (file: FileEntry) => boolean;
        generate: (ctx: ThumbnailGeneratorContext) => Promise<Blob | undefined>;
        name: string;
    }
    Index

    Properties

    canHandle: (file: FileEntry) => boolean

    Return true if this generator can produce a thumbnail for the file.

    generate: (ctx: ThumbnailGeneratorContext) => Promise<Blob | undefined>

    Produce a thumbnail blob. Return undefined on failure.

    name: string

    Human-readable identifier for debugging.