Function showDownloadFile

  • Shows a message to the user with a download button for the specified file.

    Parameters

    Returns Promise<void>

    Promise of void

    Example

    const file = { name: 'example.txt', data: 'SGVsbG8gV29ybGQh', type: 'text/plain' };
    const downloadButton = 'Download Now';
    const options = { file, downloadButton };
    await showDownloadFile(context, options);

Generated using TypeDoc