CapacitorAdapter.exportTextFile method
CapacitorAdapter › exportTextFile
Unofficial
Writes text to an export folder in the app cache and opens it with the system file handler.Signature:
exportTextFile(text: string, filename: string): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
| text | string | The text to export. |
| filename | string | The suggested file name. |
Returns: Promise<void> — A promise that resolves after the export is initiated.