Packaging · class

NativeFileDialogs

Explained in Packaging an application.

class NativeFileDialogs implements FileDialogs
import { NativeFileDialogs } from '@driftengine/package';

Constructor

new

constructor(bridge: DriftHostBridge)
ParameterTypeDescription
bridgeDriftHostBridge

Methods

openFile

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

saveFile

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