Phials plugin documentation
User guide
AI Disclosure: This page was generated by an LLM and may contain inaccuracies. Hand-crafted documentation will be implemented over time on the road to 1.0

PreviewAPI

Since Plugin API: 1.0.0

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