Shows a message to the user with a download button for the specified file.
The Matterway SDK context.
Additional options for the message and download button.
Promise of void
const file = { name: 'example.txt', data: 'SGVsbG8gV29ybGQh', type: 'text/plain' };const downloadButton = 'Download Now';const options = { file, downloadButton };await showDownloadFile(context, options); Copy
const file = { name: 'example.txt', data: 'SGVsbG8gV29ybGQh', type: 'text/plain' };const downloadButton = 'Download Now';const options = { file, downloadButton };await showDownloadFile(context, options);
Shows a message to the user with a download button for the specified file.