Skip to content

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:

ParameterTypeDescription
textstringThe text to export.
filenamestringThe suggested file name.

Returns: Promise<void> — A promise that resolves after the export is initiated.