Phials developer documentation
User guide
AI Notice: Most documentation right now was auto-generated by an LLM. Handwritten documentation will be implemented over time on the road to 1.0

PreviewAPI

Preview API - extended API for preview providers

extends PluginAPI

Signature

interface PreviewAPI extends PluginAPI {
    getMetadata(file: FileEntry): Promise<FileMetadata>;
    openFullscreen(file: FileEntry): void;
    navigateTo(path: string): void;
}

Members

NameTypeRequiredDescription
getMetadata(file: FileEntry) => Promise<FileMetadata>yesGet metadata for a file
openFullscreen(file: FileEntry) => voidyesOpen fullscreen preview for a file
navigateTo(path: string) => voidyesNavigate to a path