Packaging · class
NativeFileDialogs
Explained in Packaging an application.
class NativeFileDialogs implements FileDialogsimport { NativeFileDialogs } from '@driftengine/package';Constructor
new
constructor(bridge: DriftHostBridge)| Parameter | Type | Description |
|---|---|---|
bridge | DriftHostBridge |
Methods
openFile
openFile(accept: readonly string[]): Promise<OpenedFile | null>| Parameter | Type | Description |
|---|---|---|
accept | readonly string[] |
saveFile
saveFile(name: string, bytes: Uint8Array): Promise<boolean>| Parameter | Type | Description |
|---|---|---|
name | string | |
bytes | Uint8Array |