Host · class

BrowserFileDialogs

Explained in Display and the host.

class BrowserFileDialogs implements FileDialogs
import { BrowserFileDialogs } from '@driftengine/core';

Methods

openFile

openFile(accept: readonly string[]): Promise<OpenedFile | null>
ParameterTypeDescription
acceptreadonly string[]

saveFile

saveFile(name: string, bytes: Uint8Array): Promise<boolean>
ParameterTypeDescription
namestring
bytesUint8Array